About NewCompiler double-bar

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

About NewCompiler double-bar

Nicolas Cellier-3

NewCompiler accepts the double bar binary message as a valid selector #||

This is not ambiguous with an empty literal declaration that always
happen before an expression.

If i tried this, it works perfectly:
ClosureCompiler evaluate: '[:x| ||]'.  [] in UndefinedObject>>DoIt {[:t1
| nil]}

But fails without the space:
ClosureCompiler evaluate: '[:x|||]'.
[:xSmaCCParserError: Token not expected ->|||] HUH?

Concouring for the most minor bug one ever care of in the world!

Nicolas