Skip to content

Research enumify etc for native solution #7

@ephetic

Description

@ephetic

Frozen objects and getters that throw could do a lot of the same. Could be grepable with a definition syntax that enforced symmetry between definition and reference:

const cc = require('@ephetic/checked-constants')
cc.foo.bar.somekey = 111

where cleverness in cc allows the chain of previously undefined namespaces to be created. Would need a way to prevent grabbing object references at partial/parent paths of valid namespaces that are not themselves valid namespaces (e.g. cc.foo in previous). Would need way to keep cc extensible without namespaces being mutable, akin to #5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions