AndreVanDelft / scala

The SubScript extension to the Scala programming language
http://www.subscript-lang.org/
12 stars 1 forks source link

Improve local variables #6

Closed AndreVanDelft closed 10 years ago

AndreVanDelft commented 10 years ago

LifeFrame contains:

speedKeyInput = times(10) 
              + val c:Any=(pass_up1(here)+'0') key(chr(c)) setSpeed(char2Value(c))

This should become nicer, e.g.,

speedKeyInput = times(10) 
              + val c=chr(pass_up1(here)+'0') c setSpeed(char2Value(c))