Space Ship Operator

This is a pretty neat idea:

This gist of the post is that instead of overloading <, <=, ==, !=, >= and > operators you can just overload an <=> operator which will behave similar to what you would do to implement IComparable and the compiler will take care of the rest.

Of course this isn’t implemented in C# or VB currently but it is in Boo!

Author: justinmchase

I'm a Software Developer from Minnesota.

%d bloggers like this: