[Wish] - With...End With

tunderin

Member
Licensed User
Longtime User
I agree with Smee - code is more readable.

Would love to see it.
 

kanaida

Active Member
Licensed User
Longtime User
Definately agree, i was just going to ask this myself.

a bonus would be the other with syntax as well, I use this all the time too:

B4X:
Dim x as MyClass
x.Initialize("") with {.property1 = somevalue, .property2 = someothervalue}

typically those work just like a normal with statement, except sometimes it's just a little cleaner looking to do in one line. It's not really important, but a convenient option to have if you're used to it.
 

RandomCoder

Well-Known Member
Licensed User
Longtime User
I've also asked for this in the past.
Definite +1 from me.
 
Top