[MacRuby-devel] [MacRuby] #636: Nicer method calling
MacRuby
ruby-noreply at macosforge.org
Thu Mar 25 00:57:30 PDT 2010
#636: Nicer method calling
----------------------------------+-----------------------------------------
Reporter: kunc.filip@… | Owner: lsansonetti@…
Type: enhancement | Status: new
Priority: trivial | Milestone: MacRuby 0.6
Component: MacRuby | Keywords: method syntax enhancement
----------------------------------+-----------------------------------------
I like two currently supported features of MacRuby:
{{{
def m1(a, b=true)
...
end
def m2(a, withB:b)
end
}}}
How about this?
{{{
def proposedSyntax(a, withB:b=true andC:c=0.3)
...
end
}}}
The reason for this is that you can choose which parameters will change
from their defaults and which not.
For example:
{{{
proposedSyntax(1, andC:0.5)
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/636>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list