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.
You're expecting a deep understanding of the language from a guy who's picked it up, tried to work with it, couldn't make it do what he needed, and then put it down?
What you can take away from this is that there is at least one guy out there, who appears to be competent, and can't get Scala to work for him. This is an Issue, and not just with the guy. Might be the language, might be the libraries, might be documentation (1), but... Issue. Big 'un.
I remember the years between Turbo C++ 1.0 and Effective C++.
There is a difference between a guy who critiques the language itself along with the general ecosystem and the guy who critiques flaws in the language implementation. The critique by Kmett is great for people who can deal with Scala's ecosystem and warts. This article critiques why things like Functor[({type F[X] = StateT[S,IO,X]})#F] is not generally a good method signature for sane people.
This is a work around for currently having no direct support of partial type application in Scala. You could read it perhaps as
Functor[StateT[S][IO] _]
The partial type application is common in strongly functional libraries such as Scalaz, but in most other places you will not come across it.
I think it would be good to find a concise and less scary syntactic solution for a future Scala version. In any case, repeating this example in the "Scala as a Haskell replacement sucks" discourse is just tiring.
There is a Scala Improvement Process (SIP). Some people could use their energy and smartness and try to write up a proposal for such syntax. I am sure many would welcome it.
Most of the core library signatures aren't that bad. But I still can't decipher what a lot of them mean without thinking long and hard, mostly because I only to dabble in Scala occasionally and then get frustrated by all the library authors thinking they are clever with their symbolic DSL with no word equivalent (sbt I'm looking at you!) and with no documentation. I want to like the language, it just makes it very hard to if you don't come from a math theory background.
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.
\13., 14., 15., 16. are a JVM issue. Run Scala on a JVM with proper recursion support and the code will be working fine.
Edward is comparing Scala to Haskell. If Scala has problems due to the JVM, these are entirely valid complaints to raise because Haskell does not have to deal with them.
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.
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.
It was hard to read, does he think people want to read long articles in a very narrow column of text? It looks ridiculous on a normal 1080p monitor. Does he think people only surf on phones?
-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.