kishtarn555 / rekarel-core

MIT License
0 stars 0 forks source link

[Feature] Make logic operators short circuit #102

Closed kishtarn555 closed 1 month ago

kishtarn555 commented 1 month ago

Make it so the opertors use short circuit evaluation. The following "code" should leave a single beeper

class program {
  bool func() {
     putbeeper();
     return true;
  }
  program() {
    if (func() || func()) {
        move();
    }
  }
}