[MacRuby-devel] [macruby] #110: should support `obj.meth:val1, with:val2' syntax
macruby
ruby-noreply at macosforge.org
Tue Aug 19 14:09:52 PDT 2008
#110: should support `obj.meth:val1, with:val2' syntax
-----------------------------------+----------------------------------------
Reporter: lsansonetti at apple.com | Owner: lsansonetti at apple.com
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.3
Component: MacRuby | Keywords:
-----------------------------------+----------------------------------------
MacRuby should support the following syntax
obj.meth:v1, with:v2
As an alternative to
obj.meth v1, with:v2
Calling `obj.meth:v1, with:v2' right now will pass :v1 (the :v1 symbol and
not v1) and v2 as parameters, which is expected, but some Objective-C
developers may fall into the trap, because this is very similar to the
Objective-C way:
[obj meth:v1 with:v2]
Objective-C developers will also probably prefer this syntax because it
reveals the real selector that is being sent.
--
Ticket URL: <https://www.macruby.org/trac/ticket/110>
macruby <http://macruby.org/>
More information about the MacRuby-devel
mailing list