Re:"Move" — a simpler programming language as a subset of Ja...
by andolanra on Monday February 14, 2011 @07:05AM
(#2216443)
How does this interact with lexical scope? For example, how would the go-to counter example (in JavaScript below) be expressed in Move?
Does Move not require declarations because it has implicit declarations whenever there's a usage of any variable? (In which case the above example couldn't be expressed without some kind of circumlocution—again, like in Python.) Or are variables always looked up in the outermost scope, so you can't have a variable whose name is shared by another variable in an enclosing scope?
Given that all the code has commas in the same places as in JavaScript, I'm going to assume s/comma/semicolon, and s/expression/statement, to be pedantic.
[ Parent
| on HN ]
There are no comments on this comment yet.