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. :)


>
> http://www.lua.org/manual/5.1/manual.html#2.4.4
>
>
> http://research.microsoft.com/en-us/um/cambridge/projects/fsharp/manual/spec.html#_Toc245030841
> _______________________________________________
> bitc-dev mailing list
> [email protected]
> http://www.coyotos.org/mailman/listinfo/bitc-dev
>
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to