Projects

Ticket #636 (closed enhancement: wontfix)

Opened 23 months ago

Last modified 22 months ago

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

Changed 22 months ago by martinlagardette@…

  • status changed from new to closed
  • resolution set to wontfix
  • milestone MacRuby 0.6 deleted

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 :-)

Note: See TracTickets for help on using tickets.