Skip to content

document conventions about public vs private API #7561

@ggggggggg

Description

@ggggggggg

In the discussion of #1974 there seems to be an implicit consensus that accessing information via the a.b syntax is part of the "private" API, and the "public" API consists of calls like b(a). The canonical example seems to be that if a is a FloatRange object a.step is not a useful value for public purposes, where step(a) is.

Depending on how that issue is resolved the convention may change somewhat, but in either case there will be some preferred convention. That convention should be documented, and so far is not as far as I could tell. Perhaps the Types section of the manual makes sense?

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsThis change adds or pertains to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions