tact-docs icon indicating copy to clipboard operation
tact-docs copied to clipboard

The Book should have a page for Traits, `/book/traits`

Open novusnota opened this issue 1 year ago • 1 comments

Like #115, but for Traits.

  • Differences with contracts:
    • no init(), that's only for contracts
    • keywords: virtual and abstract (in trait) and override (in contract)
    • @interface — same as in contracts, refer to them from this page OR move description to traits.
  • Links to commonly used traits from stdlib (as they've explained well in Reference → Standard Libraries)
  • ~~Description of the base trait, which all contracts implicitly implement~~ → covered in Core library

novusnota avatar Mar 25 '24 00:03 novusnota