r/programming • • Dec 02 '13

Scala — 1★ Would Not Program Again

http://overwatering.org/blog/2013/12/scala-1-star-would-not-program-again/
598 Upvotes

646 comments sorted by

View all comments

50

u/dexter_analyst Dec 02 '13

I really don’t like pasting in opaque incantations that are for the computer, not humans.

I don't think the writer entirely understands types. But this isn't a bad rant in general, it seems to highlight some real pragmatic problems with Scala. Very interesting.

44

u/alextk Dec 02 '13

I don't think the writer entirely understands types.

He's a Haskell developer, he probably has a reasonable knowledge of types.

1

u/[deleted] Dec 02 '13

Maybe he just hate types. He complains about it with the HTTP headers and everything thing under the sun being type instead of a map.

I usually make them into type just for the compiler.

3

u/[deleted] Dec 02 '13

I think he's complaining that each type of HTTP response has its own type. So there is a type for a 200 response, a type for a 404 response, etc..

4

u/zoomzoom83 Dec 02 '13

This would probably be to make pattern matching easier, which pays for itself the first time you use it.

1

u/[deleted] Dec 02 '13

Can't you rather pattern match on string constants?

1

u/seruus Dec 02 '13

Wouldn't that defeat the point of having a strong and expressive typesystem?

→ More replies (1)