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?
Metadata
Metadata
Assignees
Labels
No labels