On 24 December 2014 at 11:37, Geoffrey Irving <[email protected]> wrote: > On Tue, Dec 23, 2014 at 4:26 PM, Jonathan S. Shapiro <[email protected]> wrote: >> On Tue, Dec 23, 2014 at 4:00 PM, William ML Leslie >> <[email protected]> wrote: >>> because does the loop body also introduce a fresh scope? Java says >>> yes, but this is awkward in practice. >> >> >> In functional languages, the answer to this has always been "yes". > > Even imperative languages (Python, Java, etc.) are pretty consistent > on this front.
In Python it does not, in languages that require variable declaration (such as Java) it typically does, in Ruby it depends on the kind of loop and if you're using 1.8 or 1.9! -- William Leslie Notice: Likely much of this email is, by the nature of copyright, covered under copyright law. You absolutely MAY reproduce any part of it in accordance with the copyright law of the nation you are reading this in. Any attempt to DENY YOU THOSE RIGHTS would be illegal without prior contractual agreement. _______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
