Re:Simpler UI Logic With Finite State Machines
by aratakareigen on Monday December 23, 2019 @08:47AM
(#21863533)
I don't know TypeScript, but can't you expend a few lines to write a function 'getA : State -> number?'? Paired with the TypeScript equivalent of Swift's / Rust's if-let, it should be just as convenient.
[ Parent
| on HN ]
There are no comments on this comment yet.