lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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