Re:What makes a good REPL?
by junke on Monday August 28, 2017 @07:25AM
(#15115816)
Some languages have immutable bindings too, where you only shadow previous bindings.
[ Parent
| on HN ]
Re:What makes a good REPL?
by joncampbelldev on Monday August 28, 2017 @07:38AM
(#15115859)
If you can shadow previous bindings then that would also cause no problem for repl re-usage, unless the shadowing syntax is different to the binding syntax.
Either way, unrelated to the point in the article about the advantage of immutable values for repl, not immutable bindings.
I would certainly agree that truly immutable bindings would be at best quite a stumbling block for repls, but so far no one was advocating for them as a good repl feature.
> so far no one was advocating for them as a good repl feature
GHCi has this feature, if you explicitly turn it on (-fwarn-name-shadowning with -Werror). I agree that it's not a terribly useful way to run a REPL.