The EOL date is officially set (I haven't paid attention - we might've passed the date as well)
Python 2 EOL is in 10 days - Jan 1, 2020 :) Great example.
The code examples are much appreciated, this is indeed what I was missing:
template<typenameNA,typenameNB>
However, that still kinda feels like, well, a "clunkier Rust trait". Which I absolutely concede is a matter of opinion. My concrete criticism is that C++ will still happily instantiate your template with whatever you ask for, and then fail at the first offending method call. Your type has been existing fine in your running program until then. Rust is able to prevent nonsensical types from being instantiated in the first place, so you never get to a runtime condition where you're looking up these template operators at all.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Python 2 EOL is in 10 days - Jan 1, 2020 :) Great example.
The code examples are much appreciated, this is indeed what I was missing:
However, that still kinda feels like, well, a "clunkier Rust trait". Which I absolutely concede is a matter of opinion. My concrete criticism is that C++ will still happily instantiate your template with whatever you ask for, and then fail at the first offending method call. Your type has been existing fine in your running program until then. Rust is able to prevent nonsensical types from being instantiated in the first place, so you never get to a runtime condition where you're looking up these template operators at all.