4 ms·
> it doesn't really get in your way when wanting to do crazy shit with already declared functions That's something i don't like about ruby. You can do crazy s
by Raphael_Amiard 17y ago
> it doesn't really get in your way when wanting to do crazy shit with already declared functions
That's something i don't like about ruby. You can do crazy shit but it leads to code wich is opaque for somebody that doesn't truly know ruby inside out. The language is full of tricks. But i don't want a full of tricks language. I want a simple language that doesn't get in my way, and doesn't provide 7 ways and 3 different mechanisms to do closure like constructs (numbers are not made up)
> On Python [...] if you really really want multiline anonymous blocks, there are hacks you can do with [...]
Well yeah i really really want them, and no i don't want to resort on hacks to use them.
I really have trouble understanding the rationale behind all those half baked constructs. The way Lua/Javascript/Scheme does it is the way to go IMHO : provide one mechanism that is simple and works well. You may loose some convenience or conciseness in the process (compared to ruby blocks for example), but what you gain is one consistent way to do things.
About javascript OO, i admit that it doesn't bother me as much as it seems to bother you, and that it may be linked to the uses i have had for javascript yet, but i have to say i indeed had more pleasure working with python/ruby object models than with javascript at the moment. I can't say if that is due to a superior mechanism or to familiarity with class based models though.