Hacker News new | ask | show | jobs
by cmeacham98 1301 days 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

4 comments

The 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.

That is the FP version of the classic https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris... . One can overengineer stuff in both FP and OOP.
This looks very clear and straightforward even knowing nothing about Haskell syntax.
I found this to be well above average as an intro to Haskell.
plus you don't even need the first line.