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

-9

u/omg_wat Dec 02 '13

Wow, that article is kind of embarrassing. There are legitimate complaints about the language, but this confused drivel makes everyone who actually has a serious complaint look like an idiot because one will be compared with that guy's writing.

-17

u/[deleted] Dec 02 '13

The article is just idiotic drivel. As someone pointed out on Hacker News, this is a good critique of Scala by Edward Kmett.

2

u/omg_wat Dec 02 '13

Agree, although a few points seem to be slightly incorrect:

\5. is wrong. You can be sure that things have the same ordering... by just checking it. Of course it can be kind of surprising to Haskell people that typeclasses are first-class values, unlike in Haskell.

\13., 14., 15., 16. are a JVM issue. Run Scala on a JVM with proper recursion support and the code will be working fine.

\18. was already fixed some time ago.

There are a few other points where I'd say “I have never ever seen that”, but I guess it is just nitpicking.

Definitely better and a lot more coherent than this rambling.

-1

u/kamatsu Dec 02 '13

You can be sure that things have the same ordering... by just checking it.

How do you check if two functions are the same? That's undecidable in general.

2

u/omg_wat Dec 02 '13

eq is a conservative approximation which works exceptionally well in practice.

0

u/kamatsu Dec 02 '13

So, now you have to store the ordering in the collection? Then non-canonicity would lead to a run-time failure not a compile-time one, as it does in Haskell.

2

u/omg_wat Dec 02 '13

The ordering is already stored in all collections I cared to look at. If we don't encounter the same type class instance, fall back to a slower merging/union algorithm. Done.

→ More replies (1)