Topic: Pure Functional Programming Languages¶
Languages¶
Backlinks¶
- Topic: Purescript
- PureScript[^1] is a pure functional programming language which outputs JavaScript suitable to be run in the browser. Its design is based on Haskell, but it does differ.
- Typeclass
- In a pure functional language, a Type class is a description of a pattern. Functions can require that their arguments fulfil this pattern, which grants use of the pattern. Data structures can then implement the pattern.
- Topic: Programming Languages
- Notes
- Traits and Typeclasses
- To the best of my knowledge, the idea of traits in rust is based on the idea of Typeclasses found in Haskell and other pure functional languages. I'm not certain on how they differ, but the idea of stating the equivalent of an interface and then letting data structures implement that interface while wiring up the details under the hood is common.