Keyword arguments can be required (forced) #567

Closed
headius opened this Issue Mar 9, 2013 · 3 comments

Projects

None yet

3 participants

@headius
Member
headius commented Mar 9, 2013

In 2.0, the following doesn't really parse. In 2.1, it will be a required "a" keyword argument:

def foo(first, second, a:)
  ...
end

We will likely have parser and interpreter/compiler changes to go with this.

@plukevdh
plukevdh commented Feb 7, 2014

+1

@enebo enebo added this to the JRuby 9000 milestone Feb 7, 2014
@enebo
Member
enebo commented Feb 7, 2014

Corrected parser and this signature works in current runtime on master.

@enebo enebo closed this Feb 7, 2014
@plukevdh
plukevdh commented Feb 9, 2014

:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment