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

Should overloads be allowed? #19

Open
pboyer opened this issue Oct 26, 2016 · 3 comments
Open

Should overloads be allowed? #19

pboyer opened this issue Oct 26, 2016 · 3 comments
Assignees

Comments

@pboyer
Copy link
Contributor

pboyer commented Oct 26, 2016

def fooString( a : string)
def fooNumber( a : number)

a = { "ok", 1 };
b = typeof(a) == "string";
c,d = filterByBoolMask( b, a );
e = fooString( c );
f = fooNumber( d );

vs.

def foo( a : string) {
return 1;
}

def foo(a : number) {
return 2;
}

a = { "ok", 1 };
b = foo( a ); // { 1, 2 }

@pboyer
Copy link
Contributor Author

pboyer commented Oct 26, 2016

If removed:

  • Would need to update users
  • Handle removal in .NET FFI
  • Update all .NET libraries

@pboyer
Copy link
Contributor Author

pboyer commented Oct 26, 2016

Interacts with

  • Replication
  • Libraries
  • FFI's (.NET, protobuf)
  • Existing issues with static vs member overloads
  • Node UI

@pboyer pboyer removed the TODO label Oct 27, 2016
@pboyer
Copy link
Contributor Author

pboyer commented Oct 31, 2016

@ke-yu Assigning you as I think you already may have written this up.

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

No branches or pull requests

2 participants