glom
glom copied to clipboard
Should Ref() freeze mode at glomtime?
It's easy to change mode, then swing back around when referencing the Ref() and now we're glomming that Ref() with a new mode, causing issues. Currently solved like this: https://github.com/mahmoud/glom/pull/196/files#diff-ef0db10c99b24c597e546561d07e34bbR211
put this here to keep track while we were in the middle of another discussion
my view is unless there is a really compelling idiom enabled, we should follow a principal of "least complex behavior" for specs -- keep them as small orthogonal building blocks
(this came up in the context of arg-mode; creating the notion of a "minor mode" that evaporates every time it hits a non-data-structure resolved this form a different direction)