-
Notifications
You must be signed in to change notification settings - Fork 0
Research enumify etc for native solution #7
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested
Description
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 = 111where 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested