On Tue, May 22, 2007 at 05:03:04PM +0900, Key Bern wrote:
> core syntax     vs      syntactic sugar
> -----------             ---------------
> 4.+(12)                 4 + 12
Yes
> array.[ ](13)          array[13]
Yes
> persoon1.==(persoon2)  persoon1 == persoon2
Yes
> if not                  unless
Yes (If you don't believe me, check parse tree's AST for an unless cond then
...)
> Proc.new          lambda
No

One more:
!(a == b)           a != b

Of course these things only apply for MRI, JRuby, etc. may do different
transformations, I do not know.
> 
> Aren't the things from to right column preprocessed into the left 
> column?
> 
> -- 
> Posted via http://www.ruby-forum.com/.