[MacRuby] #508: Method Syntax
#508: Method Syntax ----------------------------------+----------------------------------------- Reporter: cjenkins@… | Owner: lsansonetti@… Type: enhancement | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- I wish the syntax were:[[BR]] {{{set( firstName:first, lastName:last )}}}[[BR]] instead of: {{{setFirstName( first, lastName:last )}}}[[BR]] [[BR]] I think this would make the language less strange and therefore more intuitive and accessible to new learners. The current method syntax, which looks more like Objective-C, is strange to folks who do not already program in Objective-C. -- Ticket URL: <http://www.macruby.org/trac/ticket/508> MacRuby <http://macruby.org/>
#508: Method Syntax ----------------------------------+----------------------------------------- Reporter: cjenkins@… | Owner: lsansonetti@… Type: enhancement | Status: closed Priority: minor | Milestone: Component: MacRuby | Resolution: wontfix Keywords: | ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => wontfix Comment: How would you decide which part is the left side of the method and which part becomes the name of the first argument? For setters it's obvious, but Cocoa has lots of APIs. Your proposal sounds also too magical in my taste. It can be confusing for the new learner specifically (when he browses API reference). Finally, there is the problem of creating such selectors (not calling them). We do not intend to change the syntax any time soon, sorry. -- Ticket URL: <http://www.macruby.org/trac/ticket/508#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby