Skip to content

Should overloads be allowed? #19

@pboyer

Description

@pboyer

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 }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions