kongware / scriptum

Functional Programming Unorthodoxly Adjusted to Client-/Server-side Javascript
MIT License
383 stars 21 forks source link

Add functional dependencies #332

Closed ivenmarquardt closed 2 years ago

ivenmarquardt commented 3 years ago

Functional dependencies presuppose multi-parameter type classes and are required to implement resurcion schemes without lots of boilerplate. Consequently, scriptum won't provide recursion schemes until version 2.

However, this doesn't mean that appropiate types doesn't implement cata-/paramorphisms and ana-/apomorphisms respectively. Just without the recursion scheme machinery and thus with lots of repetition.