is it possible to declare multiple properties on t...
# language-proposals
z
is it possible to declare multiple properties on the same line, without assignment? : I would like to be able to do the following within the scope of a
fun
.
Copy code
val (manualRefreshes, loading, data, selected) : rx.Observable<String> //has not yet been assigned
        
        manualRefreshes = /** */ / <-- this is an rx.Observable stream, which are pretty verbose.
        loading = /** .. */
        data = /** .... */
        selected = /** */
        
        selected = /** */  // <-- this should throw a compile time error, because same val cannot be assigned twice