Just say NO to void …

This little tip showed up at dzone, and its like one of those “I coulda hadda V8” moments.  Brilliant.

Command chaining « Reflections of a computer linguist

It’s easy. Put return this; before the end of each method in your class. Just say no to void!

Published in: on November 12, 2008 at 10:53 pm  Leave a Comment  

The URI to TrackBack this entry is: https://2thyme.wordpress.com/2008/11/12/just-say-no-to-void/trackback/

RSS feed for comments on this post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: