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.
@viktorklang @xeno_by i.e. it could be as simple as writing `val foo: Foo = alloc`, (provided Foo has a zero-arity constructor).
-
-
@propensive@xeno_by I'd be fine with not having inference for it, it'd just be cleaner. -
@viktorklang@xeno_by The thing is, you lose type inference on the type parameters too, so it would often be more verbose. :(
End of conversation
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.