4 ms·
This paper takes a deliberately weird solution to the problem. FizzBuzz can be done more "normally" in Haskell with similar levels of simplicity as non-FP lang
by cmeacham98 4y ago
This paper takes a deliberately weird solution to the problem.
FizzBuzz can be done more "normally" in Haskell with similar levels of simplicity as non-FP languages: https://wiki.haskell.org/Fizzbuzz https://wiki.haskell.org/Fizzbuzz
- spacemadness 4y agoThis looks very clear and straightforward even knowing nothing about Haskell syntax.
- jrumbut 4y agoI found this to be well above average as an intro to Haskell.
- kasajian 4y agoplus you don't even need the first line.
- antonvs 4y agoThe paper even gives three normal examples early on, including one similar to the one in your link. People who miss that are clearly looking hard for some reason to dismiss the work.
- frozenlettuce 4y agoThat is the FP version of the classic https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris... . One can overengineer stuff in both FP and OOP.