DynamoDS / DesignScript

About the DesignScript language
Apache License 2.0
11 stars 10 forks source link

Should overloads be allowed? #19

Open pboyer opened 7 years ago

pboyer commented 7 years ago

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 commented 7 years ago

If removed:

pboyer commented 7 years ago

Interacts with

pboyer commented 7 years ago

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