-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
REPLJulia's REPL (Read Eval Print Loop)Julia's REPL (Read Eval Print Loop)
Description
Copying this from @mcabbott in merged #40642 to a new issue so it doesn't get lost.
===================
Is it possible that err, and in fact ans, should have a value on startup? This would prevent this:
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> ans(x) = "function";
julia> 1+1
ERROR: invalid redefinition of constant ans
julia> 2;
ERROR: invalid redefinition of constant ans
in favour of this:
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> 1+1
2
julia> ans(x) = "function";
ERROR: cannot define function ans; it already has a value
=======================
vtjnash, DilumAluthge, StefanKarpinski and JeffBezanson
Metadata
Metadata
Assignees
Labels
REPLJulia's REPL (Read Eval Print Loop)Julia's REPL (Read Eval Print Loop)