Scala's `new` syntax is an anomaly. I'd rather say `new[Foo](x, y, z)`, or just `new(x, y, z)` if `Foo` is the expected type.
-
-
Replying to @propensive
@propensive@sgodbillon but “new” is about class, not type :-/ I prefer the Ruby way (http://Foo.new (x, y, z))1 reply 0 retweets 0 likes -
Replying to @dohzya
@dohzya@sgodbillon Ah, but the `Foo` in `http://Foo.new ` looks like a term then, which isn't necessarily the case... :/2 replies 0 retweets 0 likes -
Replying to @propensive
@propensive@sgodbillon In Ruby, `new` is just a method of the `Foo` class, that's the beauty of the approach :-)1 reply 0 retweets 0 likes
Replying to @dohzya
@dohzya @sgodbillon Ah, I see - I was assuming a distinction between class and companion object in Scala.
5:24 AM - 10 Jan 2015
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.