r/programming • • Feb 24 '13

Ruby 2.0.0

http://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/
600 Upvotes

193 comments sorted by

View all comments

38

u/TikiTDO Feb 24 '13 edited Feb 24 '13
# Ruby 2.0:
def cycle(first_value, *values, name: 'default')
  # ...
end

May I be the first to say, "Holy shit, about time." Also, does anyone have an English translation of the Flonum paper? I'd be really grateful.

4

u/[deleted] Feb 24 '13

The next step is for arguments to form a regular language, expressed with a regular expression. e.g.

def cycle(first_value, (key, value)*, ((a, b)|c)? )

After that, context free language!