Hacker Newsnew | past | comments | ask | show | jobs | submit | cstml's commentslogin

Fantastic.


Indeed, but arguably both can sound strange to an outsider.

Much of the minimal elegance of Haskell relies on it being able to express logic while abstracting away details. If the goal was to get the syntax to look more like the one of JS/TS, there could have been a way to write it similarly to your example - and even simpler. But the point was - show how the use of a monoid abstracts all that - allowing one to simply use the already defined operations of the monoid.

At the time the exaples were written, they were indeed intended for a Haskell crowd, but good point going forward. Thank you.


I wrote this small post on a use case of the Monoid typeclass in Haskell.


Why is there no common place where people can see names that have been used already? It could make us avoid such nuissance.


Why don't you build one? The worst that can happen is that you learn the answer to your question.


There is, google: "asdf programming". All the other projects named asdf pop up. The people who do not use google will not use a new common place either.


There is. It's called Debian.


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

Search: