-
-
Couldn't load subscription status.
- Fork 5.7k
Closed
Description
Would it be possible to allow calling any function on Any so that the value is passed to the function as the first parameter and the parameters passed to the function call on the value is added afterwards?
ex.
sum(a::Int, b::Int) -> a + b
a = 1
sum(1, 2) # = 3
a.sum(2) # = 3 or
1.sum(2) # = 3
Is it possible to indicate in a deterministic way what a function will return in order to avoid run time exceptions?
RaulDurand, prcastro, ktsakas, kdheepak, jaynagpaul and 11 moreararslan, Datseris, AzamatB, c42f, kn05 and 2 more
Metadata
Metadata
Assignees
Labels
No labels