|
|
|
|
|
by kowalgta
2197 days ago
|
|
We use F# to build fairly complex portfolio management apps. It's a great match for F# to Javascript transpilers (Fable, WebSharper). It makes it easy to share functions and types between UI and backend and to have powerful type safety. I.e. you change your DB data type and compiler informs you where in the UI you need to make appropriate changes. This works great with "makes illegal states unrepresentable" approach. It helps to reduce a need for boring unit tests and lets you focus more on expressing domain in code directly. |
|
I kind of can do it for Strings by doing something like this
The easy way around this is a function to determine this but it'd be cool to express this level of dynamism as a type.