By bloid
via finitestate42i.blogspot.com
Published: Feb 07 2008 / 16:54
Scala is a bright new experiment, a bright new language. It has loads of good things, too long to list here. There are hundreds of blog entries and articles extolling the virtues of Scala and how it is the next best thing since sliced bread. My summary is that it is like having the best parts of of Java, Python, and Haskell, all in one package.
However, there are a few issues, two minor ones and an alarming one. I will start with the minor ones and move to the alarming one later.
SaveShareSend
Tags: opinion, other languages
Comments
obzen replied ago:
You have your point. But I don't consider using '_' bad. F.ex. {x => x * 2} equals {_ * 2} which is very self obvious, when you just once heard about the _. You can read it as 'whatever is given is doubled'. (_ * _) kind of thing is, yes, a bit more harder, and it may scare of people who hasn't seen that kind of thing before. But again, if you have used similar things before, it really is simple to understand. One good thing is that it's always '_' so our minds will start seeing it as a concept/pattern rather than ugly a part of a syntax. And it's very local (anonymous functions are very short).
But in general you're right. Operators that are self-invented (e.g. /:) and non-obvious, and that can have different meaning in different libraries, can cause problems... so some thought must be given, when designing API.
Voters For This Link (5)
Voters Against This Link (0)