jmeaster30 / ocean

A C-like programming language (get it like sea-like like an ocean lol)
GNU General Public License v3.0
0 stars 0 forks source link

Fix the negative if cases #11

Closed jmeaster30 closed 2 years ago

jmeaster30 commented 2 years ago

I like the style of code where if there is an if else block and then the if condition is never negated. We do this in a few places so we should fix it.

Ex: NO

if !myvariable {
  //some stuff
} else {
  //other stuff
}

YES

if myvariable {
  //other stuff
} else {
  //some stuff
}
jmeaster30 commented 2 years ago

wut