News for hackers. Stuff that matters.
Re:On Scala by _pmf_ on Wednesday June 19, 2013 @12:58AM (#5903803)
> I just sometimes get the feeling someone pressed accept to every feature enhancement to the language at some point as just about any feature you can think of in a modern language has found its way into Scala.

That was also my impression. Clojure is sometimes painfully restrictive (I need forward declarations for functions if I use them before they are defined? In a compiled language in 2013? Really?), but at least it is curated.

Re:On Scala by bad_user on Wednesday June 19, 2013 @01:50AM (#5903916)
With all due respect, this impression is just folklore.

The difference between Scala and Clojure is the difference between ML and Lisp. Languages from the ML family are statically typed by definition, therefore they need slightly more features to be expressive. On the other hand, the trade-off is worth it for many people, because the compiler actually helps you - for example it's far easier to work with various functors (such as monads) in ML languages, than it is to do that in Lisp.

Also, Clojure is not "painfully restrictive" or "curated". Name one thing that Clojure doesn't allow you to do.

Re:On Scala by roryokane on Wednesday June 19, 2013 @04:19AM (#5904352)
Clojure does not allow you to define reader macros. Though I do not claim that Clojure is “painfully restrictive” because of this.

I would like reader macros because they would enable the implementation of sweet-expressions (http://readable.sourceforge.net/).

Re:On Scala by willismichael on Wednesday June 19, 2013 @10:18AM (#5905645)
Re:On Scala by yareally on Wednesday June 19, 2013 @01:34AM (#5903876)
Clojure has always intrigued me, but I've stuck with Scala so far so I don't scare any of the more Java inclined developers I work with when they read my code.

I keep thinking with Scala though, I'm going to run into some really awful looking code one day from someone overly abusing all of its features. I know know even the most restrictive languages can be abused, but it just feels like Scala leaves the window much more open for that.

Re:On Scala by trailfox on Wednesday June 19, 2013 @11:44AM (#5906179)
> I keep thinking with Scala though, I'm going to run into some really awful looking code one day from someone overly abusing all of its feature

I also keep thinking that, but it never really seems to happen in my experience.

Re:On Scala by cgag on Wednesday June 19, 2013 @02:18AM (#5903986)
I'd be interested in hearing more about what you find restrictive besides forward declarations, which I've never found to be a big deal. As a side note, there was a pretty interesting discussion on HN between Steve Yegge and Rich Hickey about that: https://news.ycombinator.com/item?id=2467359