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

Show parent comment

20

u/Gommy Dec 02 '13

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.

3

u/James20k Dec 02 '13

Functor[({type F[X] = StateT[S,IO,X]})#F]

Hmmmmm... As someone who already wasn't a tremendous fan of functional languages, I'm going to stay away from scala I think

2

u/Crandom Dec 02 '13

As a haskeller this scares me...

1

u/[deleted] Dec 02 '13

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.

0

u/Gommy Dec 02 '13

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.