digital-asset / daml

The Daml smart contract language
https://www.digitalasset.com/developers
797 stars 201 forks source link

'self' is undocumented #11565

Closed leonidr-da closed 2 years ago

leonidr-da commented 2 years ago

I confirm that, if this is a feature request that has security implications, I already contacted security@digitalasset.com and followed the responsible disclosure policy.

I confirm that this is not a question or a request for technical support by the community, for which the Daml forum is available.

What is the problem you want to solve? The self construct is almost completely undocumented. As far as I can find, this is the only correct reference.

What is the solution you would propose? I think it would be nice if it was described when we're first taught about this. But maybe a general section for both constructs would be appropriate.

garyverhaegen-da commented 2 years ago

cc @carrielaben-da

I think a section "this and self" right before the "Template-local definitions" one would make sense.

garyverhaegen-da commented 2 years ago

@leonidr-da As the person who filed this ticket, would you mind taking a look at #14028 and report here what's still missing to consider it resolved?

leonidr-da commented 2 years ago

Looks good, thank you.