How to declare several properties on one line

前端 未结 3 1203
情深已故
情深已故 2020-12-09 01:24

I\'m developing a class with several lateinit properties of one type. I think it\'s too verbose to declare each of them on separate line like this:



        
3条回答
  •  北海茫月
    2020-12-09 02:23

    No, there is no way to do that. Declaring multiple properties on the same line is frowned upon by many Java style guides, so we did not implement support for that in Kotlin.

提交回复
热议问题