Skip to content

Conversation

@chrisrink10
Copy link
Member

@chrisrink10 chrisrink10 commented May 27, 2020

Adds support for multi-arity methods to definterface.

Removes multi-arity support for class and static methods of deftypes, because they don't really make sense. Class and static methods are Python interop features, rather than Basilisp language features and Python does not support multi-arity methods, so there's little point in supporting multi-arity variants of these method types. definterface will not support class or static methods at all, since this is a feature intended only for Python interop.

Fix a bug where function (and method) arities with the same fixed arity as a variadic arity were allowed when they appear after the variadic arity in the definition, but not allowed if they appeared before.

Fixes #538

@chrisrink10 chrisrink10 marked this pull request as ready for review May 28, 2020 13:37
@chrisrink10 chrisrink10 merged commit 940aba6 into master May 29, 2020
@chrisrink10 chrisrink10 deleted the feature/definterface-form branch May 29, 2020 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

definterface should support multi-arity methods

2 participants