[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Ruby philosophy vs Lua philosophy
- From: Ico <lua@...>
- Date: Sun, 24 Feb 2013 18:59:13 +0100
By no means ment as Ruby-bashing, but an (imho) interesting observation:
one of the new core features of Ruby 2.0 is the following syntactic
sugar for generating lists of symbols:
# Ruby 1.9:
KEYS = [:foo, :bar, :baz]
# Ruby 2.0:
KEYS = %i[foo bar baz]
Funny, but I can't imagine this type of 'new language features' ever
ending up in Lua. Thank you for keeping my favourite language small and
tidy :)
--
:wq
^X^Cy^K^X^C^C^C^C