specter

chromalchemy 2021-10-24T13:05:36.001500Z

@onetom I started using my-path= to distinguish paths from regular function defs. I think i picked this up from a Hoplon user who would use the β€œ=” to distinguish derived (reactive) β€œformula” cells/atoms, from regular input (non-reactive) cells/atoms in the Javelin state management system. Javelin is a lens library, and is useful to encapsulate and name data reading and writing paths. I was also using Specter within Javelin cells. Seemed like a powerful combo to tame any hairy data model for front end use.

onetom 2021-10-26T14:06:29.001700Z

thanks, interesting idea! btw, i was also a hoplon user πŸ˜‰ so how about parametric paths? those would also follow this convention? as we an see on https://github.com/redplanetlabs/specter/wiki/List-of-Navigators the unparameterized navigators are all-caps and the parameterized ones are just regular lower-kebab-case names, without any special convention.

onetom 2021-10-26T14:09:04.001900Z

(def a:b 123)
=> #'user/a:b
a:b
=> 123
maybe a colon somewhere could also be used as part of the notation...

onetom 2021-10-26T14:12:22.002100Z

ooor %path, like in REBOL! πŸ™‚ and for parametric ones, it could be %path: ;D it would work, but it would also look quite cryptic...