jckarter / clay

The Clay programming language
http://claylabs.com/clay
Other
402 stars 34 forks source link

Remove overload keyword. (issue #410) #457

Closed ghost closed 11 years ago

ghost commented 11 years ago

@jckarter's proposal to remove the overload keyword was met with mixed response (#410) and the discussion closed due to lack of consensus. However, rather than let the issue slide I've pushed a branch with the 'overload' keyword removed for evaluation. Personally I think it's an improvement.

Notes:

The implementation provided here puts an additional constraint on the overload system. Shadowing a definition in a 'starred' import requires the name to be re-'define'-ed. Otherwise the definition is treated as an overload subject to whatever interface is specified up the import chain.