Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement dynamic typed definition arguments #20

Open
JoaaoVerona opened this issue May 19, 2016 · 0 comments
Open

Implement dynamic typed definition arguments #20

JoaaoVerona opened this issue May 19, 2016 · 0 comments
Assignees
Labels

Comments

@JoaaoVerona
Copy link
Owner

Right now, definitions must specify their arguments types. For example:

def print(string name, int age, any message)

Although any can be used for specifying any type as valid, it would be further better to not require any type - so it would be evaluated to any -, making it optional. For example:

def print(string name, int age, message)

Or:

def print(name, age, message)

Things to note:

  • Overloading of definitions. What will happen?
  • Container::findFunction. How to properly find functions when there is overloaded definitions, and some/one of them could contain 'any' as argument type?
@JoaaoVerona JoaaoVerona self-assigned this May 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant