Whoa, the Dotty extension method syntax has gotten all goofy:
def (c: Circle) circumference: Double
instead of the C# style
def circumference(this c: Circle) : Double
-
-
To me, anyway, part of what makes method signatures easy to read is the expected order - def then name then types then args then return type. Very easy to scan. The other thing - why spend novelty dollars on this, when boring obvious syntax is already widely known?
-
Because the boring syntax requires reordering... def foo(a: T)(b: T2)(c: T3): R looks like http://a.foo (b)(c) at the callsite. I don't really understand why you *wouldn't* choose to write things in the same order at the definition site as the callsite...
- 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.