Damian Conway wrote:
>
> Graham asked:
>
> > IIRC there was some suggestion of a class being able to declare
> > elements to be accessable as methods in this was.
> >
> > So if $ref is of a known type and 'a' was declared in that way,
> > the parser would take $ref.a and turn it into $ref.{a}
>
> This is intended. I'm not sure Larry's decided the exact mechanism yet.
Hopefully, we'll get a "with" operator and everything:
with %database.$accountnumber {
.interestearned += $interestrate * .balance
}
anything short of that, in my opinion, is merely trading old ugly for
new ugly.