I found your proposal
https://groups.google.com/forum/#!searchin/julia-users/vavasis/julia-users/Hq00EyeazJM/HgYgDcnbhs4J
https://groups.google.com/forum/#!searchin/julia-users/vavasis$20const/julia-users/FK_29Dj4eDo/nX5QnhfKc40J
but that is a different feature, having cont `in` argument, while
There are two possible ways to implement return values from functions that
are 'const': either the compiler checks that const-ness is maintained (as
in C++), or the value has a read-only flag in it that is checked at
run-time by the setindex! routine. The latter solution would entail a
In 2014 when I first learned about Julia, I also suggested on this
newsgroup that there should be a 'const' keyword as in C++ to annotate
function arguments and return variables that are supposed to be read-only.
Possibly you can find the old thread with google. I received a lot of
feedback