Remove parameterized
functionality and replace with simple functions
#335
Labels
parameterized
functionality and replace with simple functions
#335
One of the patterns that has emerged with using microstates a lot is the concept of a "higher order" microstate: A function that takes a parameter and returns a microstate type.
parameterized()
was a very rudimentary implementation of this, but is no longer necessary since it's now obvious in retrospect that we could have used simple functions instead.The only parameterized types in the system are
ObjectType
andArrayType
, which should be replaced by functions:ObjectOf()
andArrayOf()
:before
after
In actual fact however, this will be little noticed since most of the time we use the DSL anyhow.
but mostly still just
checklist:
ObjectType
withObjectOf()
functionArrayType
withArrayOf()
functionArrayOf(Type) === ArrayOf(Type)
parameterized.js
The text was updated successfully, but these errors were encountered: