Open andreaferretti opened 9 years ago
Hmmm. I'll have to think about this. If it's in the same scope, it's intended that the second declaration replaces the first declaration within the REPL. However, nrpl is not a real REPL and merely a front end to the compiler, and it is a coding error in that context. I'll meditate on this one a bit.
This fails
In REPLs it is usually understood that newer definitions shadow the old ones.
Scala manages to do this by evaluating each expression in an inner scope. You may do the same by adding a new
block
for each expression to be evaluated