Agree. It will be in tune with other programming language I use.I highly support this feature request!
Versatility: A lot, readability: none.Use a single map type for your subs' parameter, instead. Far more versatile.
My best guess is that it's not a feature aligned with Erel's vision for B4X. I don't think I've ever read the vision anywhere, but from what I gather when I read between the lines, he's very focused on keeping B4X approachable for all users (which is a great focus).I suppose that implementing it is a problem
Yes, not complicating things is a goal, but in this case there would be nothing complicated for any developer.My best guess is that it's not a feature aligned with Erel's vision for B4X. I don't think I've ever read the vision anywhere, but from what I gather when I read between the lines, he's very focused on keeping B4X approachable for all users (which is a great focus).
Not really a trick but the way to do it is by adding another sub with the additional parameter:I do not know if I can do this in B4A using some code trick
Public Sub DrawText(Text As String)
DrawColoredText(Text, Colors.Black)
End Sub
'or make it DrawText2
Public Sub DrawColoredText(Text As String, Color As Int)
...
End Sub
Agree. Also agree that all programming languages has some difference from one another. Seeking similar features in all is wrong, but as a developer we are lazy and tend to like the feature which helps us in doing more work in less code, like 'i++'.BTW, I don't have anything against this feature and it could be added at some point.
Generally speaking a programming language is not a bag of random features and the more features you add the less accessible the programming language becomes.