Ticket #636 (closed enhancement: wontfix)
Nicer method calling
| Reported by: | kunc.filip@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | trivial | Milestone: | |
| Component: | MacRuby | Keywords: | method syntax enhancement |
| Cc: |
Description
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)
Change History
Note: See
TracTickets for help on using
tickets.

