Foreach Loop - Language Support

Language Support

Some of the languages with support for foreach loops include ABC, ActionScript, Ada, C++11, C#, Cobra, D, Daplex (a query language), ECMAScript, Java (since 1.5, using the reserved word for for the for loop and the foreach loop), JavaScript, Objective-C (since 2.0), Perl, PHP, Python, REALbasic, Ruby, Smalltalk, Tcl, tcsh, Unix shells, Visual Basic .NET and Windows PowerShell. Notable languages without foreach are C and C++ prior to C++11.

Read more about this topic:  Foreach Loop

Famous quotes containing the words language and/or support:

    Our goal as a parent is to give life to our children’s learning—to instruct, to teach, to help them develop self-discipline—an ordering of the self from the inside, not imposition from the outside. Any technique that does not give life to a child’s learning and leave a child’s dignity intact cannot be called discipline—it is punishment, no matter what language it is clothed in.
    Barbara Coloroso (20th century)

    To suppose such a thing possible as a society, in which men, who are able and willing to work, cannot support their families, and ought, with a great part of the women, to be compelled to lead a life of celibacy, for fear of having children to be starved; to suppose such a thing possible is monstrous.
    William Cobbett (1762–1835)