Skip to content

Types entry in Best Practices is out of date #263

@briandoyle81

Description

@briandoyle81

This section needs to be updated to recommend using entitlements: https://cadence-lang.org/docs/security-best-practices#types

Detals:

brian.doyle
I don't really understand how to relate the best practice of using intersection types and interfaces when possible with the documentation - it explains how to implement them, but it's less clear why or when you need one.

bastian
17 minutes ago
That entry in the best practices does not make a lot of sense currently. It was updated last year while changing restricted types to intersection types everywhere. However, in the context of best practices/security it makes no sense: while restricted types where the main access control / security mechanism before 1.0, since 1.0 it is entitlements. The first sentence of that 'Types' section should be re-written to recommend using entitlements. The remainder still applies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions