PLDB
Languages Features Calendar About Lists Add Language
GitHub icon

While Loops

While Loops

While Loops are a language 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, Ruby, R, Perl, C#, Scala, Swift, Rust, Lua, Objective-C, Kotlin, Julia, Pascal, Ada, PowerShell, OCaml, Dart, Groovy, F#, CoffeeScript, Bash, Solidity, Crystal, Chapel, Verilog, Reason, Dylan, VHDL, AutoIt, Maxima, X10, ABAP, SystemVerilog, Angelscript, Apex, Q#, nimrod

Example from JavaScript:

let times = 10 while (times) {times--} console.log("done")

Article source

PLDB - Build the next great programming language. v5.0.0 - Acknowledgements · Email · GitHub