The book of inspiration

March 19, 2010

Forget booleans

Filed under: tech — Tags: — zproxy @ 12:11 pm

While watching this Out of Browser Experience video I got the idea to reuse the is keyword:

Thoughts?

Update: IntelliSense for is operator should filter to types known to subclass the referenced member.

About these ads

2 Comments

  1. I like it… Very readable. Now, how that could work with code completion? I mean… Context.Network is {Possible “enums?” of states}?

    Comment by Marcelo Volmaro — March 19, 2010 @ 2:05 pm

  2. :)

    [...] IntelliSense for is operator should filter to types known to subclass the referenced member.

    Comment by zproxy — March 19, 2010 @ 2:58 pm


RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

The Shocking Blue Green Theme. Create a free website or blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 77 other followers

%d bloggers like this: