kailua icon indicating copy to clipboard operation
kailua copied to clipboard

Argument-directed overloaded functions

Open lifthrasiir opened this issue 7 years ago • 0 comments

There are tons of instances where you accept one of the (mutually disjoint) argument types, most significantly os.date (awww...). There is a tentative syntax reserved for such cases (function(...) -> ... & (...) -> ...), but its exact semantics is still vague. Its relation to subtyping and user functions should be also determined.

lifthrasiir avatar Jun 13 '17 01:06 lifthrasiir