I’m kinda surprised that pretty much nobody who commented here seems to have understood the point of the post.
It wasn’t about readability at all.
It was about designing APIs that the IDE can help you with.
With RTL syntax the IDE doesn’t know what you are talking about until the end of the line because the most important thing, the root object, the main context comes last. So you write your full statement and the IDE has no idea what you are on about, until you end at the very end of your statement.
Take a procedural-style statement:
len(str(myvar))
When you type it out, the IDE has no idea what you want to do, so it begins suggesting everything in the global namespace starting with l, and when you finish writing len(, all it can do is point out a syntax error for the rest of the line. Rinse and repeat for str and myvar.
Object-oriented, the IDE can help out much more:
myvar.tostring().length()
With each dot the IDE knows what possible methods you cound mean, the autocomplete is much more focussed and after each () there are no open syntax errors and the IDE can verify that what you did was correct. And it you have a typo or reference a non-existing method it can instantly show you that instead having to wait until the end of the whole thing.
I’m kinda surprised that pretty much nobody who commented here seems to have understood the point of the post.
It wasn’t about readability at all.
It was about designing APIs that the IDE can help you with.
With RTL syntax the IDE doesn’t know what you are talking about until the end of the line because the most important thing, the root object, the main context comes last. So you write your full statement and the IDE has no idea what you are on about, until you end at the very end of your statement.
Take a procedural-style statement:
len(str(myvar))
When you type it out, the IDE has no idea what you want to do, so it begins suggesting everything in the global namespace starting with l, and when you finish writing
len(
, all it can do is point out a syntax error for the rest of the line. Rinse and repeat for str and myvar.Object-oriented, the IDE can help out much more:
myvar.tostring().length()
With each dot the IDE knows what possible methods you cound mean, the autocomplete is much more focussed and after each
()
there are no open syntax errors and the IDE can verify that what you did was correct. And it you have a typo or reference a non-existing method it can instantly show you that instead having to wait until the end of the whole thing.