ProtoObject and comparison for equality and ordering

H. S. Teoh hsteoh at quickfur.ath.cx
Thu May 16 17:53:44 UTC 2019


On Thu, May 16, 2019 at 05:31:19PM +0000, Noob via Digitalmars-d wrote:
> Any thoughts about the spaceship operator design as accepted for
> C++20?
> 
> Not invented here, but there seems to be room for improvement:
> 
> https://stackoverflow.com/q/47485803
[...]

Actually, D used to *have* the spaceship operator, and even several of
its friends like !<=, !>=, !<>=, and several others.

We deprecated them, and about a year or three ago finally got rid of
them.  Good riddance, I say.  Nobody uses them anyway, and nobody cares.
They are just a dead weight in the language, beautiful in theory but
never actually used in practice.

Don't bring those darned aliens back. ;-)


T

-- 
Trying to define yourself is like trying to bite your own teeth. -- Alan Watts


More information about the Digitalmars-d mailing list