2.6 KiB
2.6 KiB
thunderstrike.ai intern resources
purescript
Purescript is a strongly-typed [type safety] purely functional [purely functional] programming language that compiles to javascript (like typescript).
In brief
- effectful code [side effect] is isolated from non-effectful code. This makes programs much more consistent to run and reason about.
- everything is an expression
- interacting with raw javascript is relatively painless
Motivating example: React vs Halogen
this frontend app:
- renders
"Loading..."
until either data or error - fetches data from a server
- if ok, render items in a list. if error, render error span at the bottom of the page.
React | Halogen |
|
|