From: Larry Wall <[EMAIL PROTECTED]>
   Date: Fri, 16 Feb 2007 12:42:27 -0800

   . . . so maybe there's some general syntactic relief for rw/ro that is
   orthogonal to everything else.  But that means it wouldn't be a
   trait, a type, a sigil, or a twigil, if it's really orthogonal.
   I don't just want to go with bare rw and ro markers because I think
   they're too easy to confuse.  It's more like we want an initializer
   that says "lock this after I change it".  If used on the initializer
   of a declaration it would have the force of a readonly declaration.
   Some variant on or near the =, in other words, that could also be
   a variant on normal assignment . . .

Sounds like you want a way to specify single assignment.  Maybe use ":="
or something similar to say that the assignment is really a definition.
Though probably that doesn't address the "is context is rw" issue.  And
it's not clear to me what it would mean without something like "my" that
introduces a new scope . . .

                                        -- Bob Rogers
                                           http://rgrjr.dyndns.org/

Reply via email to