Hipster Scala features

Thursday, November 14, 2013

I’m a big fan of Scala, but there are some features I try to steer clear of like covariant or contravariant generics, or excessive use of operator overloading to construct nifty DSLs which look as if a cat walked over your keyboard.

Yesterday a situation like that came up where @thinkberg was looking at my code and said “uh, you’re using +T in a generic”, and I said “that’s a hipster feature of Scala, you don’t need to understand it, you just need to get it right so your code compiles.”

I posted this on Twitter which lead to the comments below. Sometimes I just loooove Twitter ;)

Edit Nov 18, 2013: Added two more tweets

Posted by Mikio L. Braun at 2013-11-14 10:55:00 +0000

blog comments powered by Disqus