On 22 March 2010 23:26, Rick Richardson <[email protected]> wrote: > On Mon, Mar 22, 2010 at 5:27 PM, Ben Karel <[email protected]> wrote: >> >> Regarding for/while loops: Interestingly enough, the looping >> constructs provided by Lua and F# are quite similar in both syntax and >> semantics. Both have while loops, "simple" for loops, and "iteration" >> for loops as three distinct constructs. Lua defines "simple" for loops >> in terms of while loops, whereas F# takes simple for loops as >> primitive. >> > > I guess a lot of the more modern languages use 'for' for iteration and > 'while' for conditional looping. Ruby and Python come to mind. > > I rather like the idea that the same for construct can be used to achieve 3 > very different results (more if you include side effects) > Although, I would understand how someone might hate it. :)
As if it were the same construct then. It just uses the same keyword. Thanks Michal _______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
