[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What?



In article <3D58BA35.F3D3C1B3@lucent.com>,
 Gabor Greif <ggreif@lucent.com> wrote:

| In a weak moment I proposed a Haskell-like infix notation for binary 
| functions,
| just like the semantical identity
| 
| foo(bar) <===> bar.foo
| 
| there could be a
| 
| instance?(foo, <integer>) <===> foo `instance?` <integer>
| 
| syntactical sugar.
| 
| I find it well readable at least.

Then there is always the Smalltalk keyword mechanism for n-ary methods:

   foo isKindOf: Integer

   1 to: 10 by: 2 do: [...]

-- 

     -- Tim Olson