[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Syntactic sugar cravings
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 24 Jul 2001 14:30:22 -0300
> Also, I think I'm going to implement the following in my interactive lua
> command loops:
>
> =2+2
>
> is an abbreviation for
>
> _EVAL_PRINT(2+2)
This seems a nice (and simple) solution for those who use Lua as a calculator.
The `=' is an easy key (no shifts involved ;-), and we do not need to change
Lua (the core), only lua.c. We will consider it for 4.1 beta (alpha is almost
out now).
-- Roberto