whileAkik
whileAkik is a control flow construct in the hypothetical Akik programming language. It is designed to express looping with cooperative multitasking semantics, combining a traditional while-style condition with a built-in yield capability. This makes it suitable for writing loops that integrate with a scheduler or event loop without blocking the entire program.
Syntax and basic usage: The typical form is whileAkik (condition) { statements }. The condition is evaluated at
Semantics: whileAkik differs from a standard while by incorporating cooperative scheduling. Loops built with whileAkik are
Examples: A simple loop may print numbers 0 to 4 while yielding between iterations. For example:
}
History and usage: whileAkik has appeared in academic discussions and teaching materials to illustrate how loops
See also: while; for; async/await; cooperative multitasking.