Re:The data model behind Notion's flexibility
by bionhoward on Wednesday May 19, 2021 @08:56AM
(#27207904)
have you tried "data last" FP like `transformTheData(theChangeToMake, theData): ResultingData` instead? I learned this from Ramda.JS, makes it way easier to leverage currying, ex `change = transformTheData(theChangeToMake); change(theData)`
We do lean very heavily on the TypeScript type system and try to make invalid states unrepresentable.