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
-
-
As for "converting" it to a function, it is still going to be "just a function", but you'll need to write the lambda which constructs that function. That will probably look like a callsite application, so it will mirror the definition, too. Is that what you meant?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
This Tweet is unavailable.
-
Should I tell you about the new syntax for implicit parameters? ;) def fn(x: T) given (ev: Typeclass[T]) = ...
End of 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.