Re: Syntax and redundancy
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Syntax and redundancy
- From: Boyko Bantchev <boykobb@...>
- Date: 2005年8月30日 18:23:35 +0300
Sorry, just couldn't resist the following :)
On 8/30/05, Rici Lake <lua@ricilake.net> wrote:
> int i; for (i = 1; i <= 10; ++i) { ... }
> for i = 1, 10 do ... end
>
> Advantage: Lua, 16 fewer keystrokes
Not so. Having once defined
#define DO(var,from,to) for (var=from; var<=to; ++var)
then
DO(i,1,10) {...}