DylanSp / wheel-lang

A small toy imperative language (with some OOP features) for demonstrating and practicing language design/implementation.
MIT License
14 stars 0 forks source link

Add note to README about no else-if's #19

Closed DylanSp closed 4 years ago

DylanSp commented 4 years ago

Can't do

if (x == 0) {
} else if (x == 1) {
} else {
}

Have to nest, like so:

if (x == 0) {
} else {
  if (x == 1) {
  }
  else {
  }
}
DylanSp commented 4 years ago

Done in https://github.com/DylanSp/wheel-lang/commit/a3e62dd286c626e88cd93513c5061c7d4be73d09.