News for hackers. Stuff that matters.
Re:Why moving to Scala - Part I - Writing less code by petervandijck on Tuesday June 21, 2011 @11:52AM (#2679259)
it almost looks like PHP there :)
Re:Why moving to Scala - Part I - Writing less code by Flow on Tuesday June 21, 2011 @01:24PM (#2679588)
Care to explain, because I can't see it.
Re:Why moving to Scala - Part I - Writing less code by jablan on Tuesday June 21, 2011 @03:25PM (#2680030)
I believe that the impression is there because of the fact that Scala really reminds of a dynamically typed language, with type inference and lots of syntax sugar. And if PHP is the only dynamic language one has been exposed to, then well, PHP it looks like. :)
Re:Why moving to Scala - Part I - Writing less code by colomon on Tuesday June 21, 2011 @10:24PM (#2681377)
It certainly seems very fair to say that most dynamic languages have most of the features he's bragging about. That seems to be the a repeating pattern of the last several Scala articles I've seen here: The author is all excited about how terse it is (compared to Java, I guess), but it actually looks kind of bloated to me. :)
Re:Why moving to Scala - Part I - Writing less code by petervandijck on Wednesday June 22, 2011 @08:24PM (#2686059)
Their first example

val entries = List(Map("name"->"joe","age"->35),Map("name"->"joe","age"->32))

looks much more like PHP than like the Java example they give:

$entries = array("foo" => "bar", 12 => true);

And downvotes? wtf, php-haters?