Not in code

Software is about people

Java7->property->access->is->yucky

leave a comment »

Kirk (via Erik’s linkblog) blogs:

The purpose of the [->] operator is to provide a short hand notation for properties. The syntax that we would normally use is;

a.setFoo( b.getFoo());

With the “->” operator we would see;

a->foo = b->foo;

How we’d currrently coding this is;

a.foo = b.foo where foo would have to be more visiable than private.

My initial, not very well thought out, straight from gut, but strong reaction is “Yuck!”. I may elaborate in a later post, but feeling too lazy to post anything more useful that a subjective opinion.


Written by hiremaga

January 3, 2007 at 7:10 pm

Posted in Uncategorized

Tagged with

Leave a Reply

You must be logged in to post a comment.