glom icon indicating copy to clipboard operation
glom copied to clipboard

Should Ref() freeze mode at glomtime?

Open mahmoud opened this issue 4 years ago • 1 comments

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

mahmoud avatar Aug 29 '20 01:08 mahmoud

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)

kurtbrose avatar Sep 15 '20 13:09 kurtbrose