HaloO,

Patrick R. Michaud wrote:
The STD.pm grammar [1] shows that the second is the correct form -- i.e., default values occur after traits.

IIRC, there used to be an 'is default(42)' trait that could
be placed arbitrarily.


PS  Incidentally, it seems silly to have "is rw" but not "is ro".  I keep
writing "is ro".

Yes, we've also run into this problem a few times while working on Rakudo.

Not to mention the fact that 'writeonly' and 'wo' are missing
completely even though they are required for proper contravariant
typing of output parameters. Parameters with 'rw' have to be
*invariant* unless we manage to split the meaning of the type slot
in 'rw' parameter declarations between input and output.


Regards, TSa.
--

"The unavoidable price of reliability is simplicity" -- C.A.R. Hoare
"Simplicity does not precede complexity, but follows it." -- A.J. Perlis
1 + 2 + 3 + 4 + ... = -1/12  -- Srinivasa Ramanujan

Reply via email to