Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If the examples are in Haskell, it should definitely use the Haskell term, so that people can then run the code.

An alternate might be to have examples in multiple languages, colour-coded.



I think they should use map in the text and fmap in the Haskell examples, while explaining quickly why Haskell uses fmap. You can translate an example with map in Python, JS, Java, etc. fmap is Haskell-specific. I also think we shouldn't tie "functional design patterns" to Haskell so much, but that's a bigger issue.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: