Space Ship Operator

This is a pretty neat idea:

http://blogs.msdn.com/abhinaba/archive/2005/10/11/479537.aspx

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: