Projects

Ticket #110 (new defect)

Opened 3 years ago

Last modified 14 months ago

should support `obj.meth:val1, with:val2' syntax

Reported by: lsansonetti@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby Later
Component: MacRuby Keywords:
Cc:

Description

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.

Change History

Changed 3 years ago by lsansonetti@…

`obj.meth :v1, with:v2' should still send :v1 and v2 as parameters.

The parser should just ignore ':' if it's right to the very first part of the selector.

Changed 3 years ago by lsansonetti@…

  • milestone changed from MacRuby 0.3 to MacRuby 0.4

Changed 14 months ago by lsansonetti@…

  • milestone changed from MacRuby 0.4 to MacRuby Later

For Later.

Note: See TracTickets for help on using tickets.