"John M. Dlugosz" wrote: > Carl Mäsak cmasak-at-gmail.com |Perl 6| wrote: > > Pm (>): > > > > > In Rakudo's case, we just haven't implemented read-only traits > > > on variables yet. > >> > > > > Goodie. I guessed as much. > > > > > >> But yes, I expect that it will be caught as > > > a compile-time error. > >> > > > > And do you agree it's reasonable to expect this of every compiler? > > > > // Carl > > > > > I think that is the point of declared types. But, something like > > no strong_type_check :rw > > in scope can turn that off, in case you want to play dirty tricks.
What is the point of be able to mark things readonly if the compiler does reject assignment attempts? What is the point of marking things readonly if you can turn it off? --