From: Jeff Wood Date: 2005-10-20T09:22:24+09:00 Subject: Re: Method annotation and anonymous functions Yes it would, but I don't see another way to do attribution of methods without causing compatibility issues .... do you? j. On 10/19/05, David A. Black wrote: > Hi -- > > On Thu, 20 Oct 2005, Jeff Wood wrote: > > > Most languages define some token that specifically states method attribute... > > Java uses @... since @ isn't a used char otherwise. > > > > for us ... it would need to be something else ... > > > > and it would simply bind to the function its declared in, just like > > functions bind to the classes they are declared in. > > > > how 'bout > > > > def method1( a, b ) > > ->visibility = true > > ->returns = int > > # actually do some work... > > ... > > end > > > > just thinking out loud... since it would have a new punctuation it > > wouldn't introduce incompatibility. > > Worse: it would introduce new punctuation :-) > > > David > > -- > David A. Black > dblack@wobblini.net > > -- "http://ruby-lang.org -- do you ruby?" Jeff Wood