PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

While Loops

While Loops

While Loops are a feature.

In most computer programming languages, a while loop is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition.


Languages without While Loops include HOPE

Languages with While Loops include Java, JavaScript, C, Python, C++, PHP, Perl, C#, Ruby, R, Swift, Scala, Rust, Pascal, Ada, Lua, Kotlin, PowerShell, Objective-C, Julia, Dart, Reason, Bash, Crystal, F#, Verilog, Solidity, OCaml, CoffeeScript, Groovy, VHDL, Chapel, ABAP, Dylan, AutoIt, X10, SystemVerilog, Maxima, Angelscript, Jule, Apex, Q#, nimrod

Example from JavaScript:
let times = 10 while (times) {times--} console.log("done")
Example from Jule:
for my_condition { // ... }
virtual-functions-feature.html 路 while-loops-feature.html 路 anonymous-functions-feature.html

View source

PLDB - Build the next great programming language 路 v2022 Day 33 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com