4 ms·
I feel like this would be a great argument for an args keyword, in the same way that this is a keyword. args would just be a JSON object with some additional sy
by bobthepanda 9y ago
I feel like this would be a great argument for an args keyword, in the same way that this is a keyword. args would just be a JSON object with some additional syntactic sugar for adding/removing parameters.
So if you have an overloaded method, say
print(String)
print(String, Int)
you could just do
print(args.extend(Int))