You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
because the interpreter immediately uses the value in order to print it:
~> scala
Welcome to Scala version 2.7.3.final (JavaHotSpot(TM) ClientVM, Java1.5.0_16).
Type in expressions to have them evaluated.
Type:help for more information.
scala>lazyvalx=3
x:Int=3
this might seem like a fairly trivial issue, but I think it has potential to confuse people who are trying stuff out in the REPL in order to understand the language.
The text was updated successfully, but these errors were encountered:
Geoffrey Alan Washburn (washburn) said:
After some quick investigation this looks like it might be feasible. However, I won't have time to work on this myself, so I am going to assign it to scala_community. Whenever the REPL gets a new owner, they can consider whether to tackle this enhancement.
I thought I'd be able to just dash it off but it was harder than I thought -- though the final patch only adds a net of five lines to the interpreter, I'm sure I had 100-150 lines going at the peak. At least I learned a lot about the repl along the way. Please let me know if this is inadequate and I'll do whatever else is needed.
because the interpreter immediately uses the value in order to print it:
this might seem like a fairly trivial issue, but I think it has potential to confuse people who are trying stuff out in the REPL in order to understand the language.
The text was updated successfully, but these errors were encountered: