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.
-
-
@propensive Absolutely. Thinking of which, you could most probably create an `alloc` macro to allow for: `val foo = alloc[Foo](bar, baz)` -
@viktorklang Yes, that's what I wanted to do.@xeno_by said I couldn't access the expected type, so `alloc(bar, baz): Foo` would never work. - Show replies
New conversation -
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.