[MacRuby] #636: Nicer method calling
#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/>
#636: Nicer method calling ---------------------------------------+------------------------------------ Reporter: kunc.filip@… | Owner: lsansonetti@… Type: enhancement | Status: closed Priority: trivial | Milestone: Component: MacRuby | Resolution: wontfix Keywords: method syntax enhancement | ---------------------------------------+------------------------------------ Changes (by martinlagardette@…): * status: new => closed * resolution: => wontfix * milestone: MacRuby 0.6 => Comment: Unfortunately, this syntax does not really make sense, and would mostly be unexpected since this is not the Obj-C way. Closing as won't fix :-) -- Ticket URL: <http://www.macruby.org/trac/ticket/636#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby