-asko Stephen Kellett kirjoitti 28.6.2008 kello 3:06:
Petite Abeille wrote:I think we'll have to disagree on what straightforward means. For things like this, syntatic sugar is everything. Which is why, if Ruby ever becomes as fast as the rest, it will win. Your example makes try/catch/finally in C++ look delightful, its so much easier to read, understand and use. Much as I like Lua, the purist/stripped down nature of it means that I think it will be forever a specialist niche language and JS or Ruby will end up being the ultimate implementation language (whatever their demerits). Lua + some syntactic sugar could go a long way to making Lua a much more mainstream language.Syntax sugar aside, it's rather straightforward to roll your ownStephen