3 ms·
in fact, most of those things are possible in c++ of all places.
in fact, most of those things are possible in c++ of all places.
Can you explain how? Most of these look like essentially type-inference through duck-typing, and (AIUI) C++ doesn't even have duck-typing.
C++ templates are a kind of duck typing, aren't they?
C++ has had duck typing since it had generics.
Here would be an example of the first case : https://wandbox.org/permlink/AIgZtkFgTuiQReDT https://wandbox.org/permlink/AIgZtkFgTuiQReDT
I agree, and some of these possible things can be more efficiently implemented in C++.