<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Proper Properties</title>
	<atom:link href="http://www.blog.dannynet.net/archives/81/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blog.dannynet.net/archives/81</link>
	<description>Pondering Programming and Poetry</description>
	<pubDate>Thu, 28 Aug 2008 23:07:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Erik van Oosten</title>
		<link>http://www.blog.dannynet.net/archives/81#comment-24346</link>
		<dc:creator>Erik van Oosten</dc:creator>
		<pubDate>Wed, 28 Mar 2007 19:39:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/archives/81#comment-24346</guid>
		<description>Okay, its here. Someone has really done it:
https://bean-properties.dev.java.net/</description>
		<content:encoded><![CDATA[<p>Okay, its here. Someone has really done it:<br />
<a href="https://bean-properties.dev.java.net/" rel="nofollow">https://bean-properties.dev.java.net/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://www.blog.dannynet.net/archives/81#comment-13850</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Tue, 06 Feb 2007 09:04:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/archives/81#comment-13850</guid>
		<description>@Ricky: okay, have it your way then: we make the switch work the other way around. So the compiler would by default generate accessor methods. Only if you use the switch, it won't generate them. If individual files need non-default behaviour, use the class-level annotation (instead of using different compiler switches for those files). This is hardly a first for Java; see assertions.

Still no need for extra keywords or a confusing dot syntax.</description>
		<content:encoded><![CDATA[<p>@Ricky: okay, have it your way then: we make the switch work the other way around. So the compiler would by default generate accessor methods. Only if you use the switch, it won&#8217;t generate them. If individual files need non-default behaviour, use the class-level annotation (instead of using different compiler switches for those files). This is hardly a first for Java; see assertions.</p>
<p>Still no need for extra keywords or a confusing dot syntax.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricky Clarkson</title>
		<link>http://www.blog.dannynet.net/archives/81#comment-13790</link>
		<dc:creator>Ricky Clarkson</dc:creator>
		<pubDate>Mon, 05 Feb 2007 19:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/archives/81#comment-13790</guid>
		<description>Having to set command line options just makes using Java harder.  You'd have to have separate compiles for separate files (assuming two files in the same codebase want different options).

I'd much prefer doing this in the language.  A 'property' keyword would be fine, and would only need to be a contextual keyword, i.e., in existing code, 'property' is already not allowed in the position it would be placed.  In this way, no existing code is broken, and there's no need for compile options.

Also, one of the awkward things about properties as they stand is the syntax for access; there's nothing wrong with using a dot for property access instead of get/set methods.</description>
		<content:encoded><![CDATA[<p>Having to set command line options just makes using Java harder.  You&#8217;d have to have separate compiles for separate files (assuming two files in the same codebase want different options).</p>
<p>I&#8217;d much prefer doing this in the language.  A &#8216;property&#8217; keyword would be fine, and would only need to be a contextual keyword, i.e., in existing code, &#8216;property&#8217; is already not allowed in the position it would be placed.  In this way, no existing code is broken, and there&#8217;s no need for compile options.</p>
<p>Also, one of the awkward things about properties as they stand is the syntax for access; there&#8217;s nothing wrong with using a dot for property access instead of get/set methods.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://www.blog.dannynet.net/archives/81#comment-11479</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Tue, 23 Jan 2007 14:44:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/archives/81#comment-11479</guid>
		<description>@Erik: it's so obvious I can't imagine I'm the first to think of it...
&lt;p&gt;
My idea is that you would have to explicitly set a command line compiler option to enable method generation. So if you don't set that option, nothing will be generated. So your existing code base would compile as is, without any side effects.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>@Erik: it&#8217;s so obvious I can&#8217;t imagine I&#8217;m the first to think of it&#8230;</p>
<p>
My idea is that you would have to explicitly set a command line compiler option to enable method generation. So if you don&#8217;t set that option, nothing will be generated. So your existing code base would compile as is, without any side effects.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remco van 't Veer</title>
		<link>http://www.blog.dannynet.net/archives/81#comment-11474</link>
		<dc:creator>Remco van 't Veer</dc:creator>
		<pubDate>Tue, 23 Jan 2007 14:24:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/archives/81#comment-11474</guid>
		<description>This is way too obvious!  You are hurting the Java community!  FieldReader, FieldWriter and FieldAccess are probably already claimed by a annotation squatter deep down in the labs of Sun.  Or..  "annotations should not be used like this" and some lengthy discussion about compile time annotations being evil.  ;)</description>
		<content:encoded><![CDATA[<p>This is way too obvious!  You are hurting the Java community!  FieldReader, FieldWriter and FieldAccess are probably already claimed by a annotation squatter deep down in the labs of Sun.  Or..  &#8220;annotations should not be used like this&#8221; and some lengthy discussion about compile time annotations being evil.  <img src='http://www.blog.dannynet.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik van Oosten</title>
		<link>http://www.blog.dannynet.net/archives/81#comment-11470</link>
		<dc:creator>Erik van Oosten</dc:creator>
		<pubDate>Tue, 23 Jan 2007 13:58:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/archives/81#comment-11470</guid>
		<description>Hi Danny,

Spot on! Actually, I was thinking along the same lines already. Guess its kind of obvious :)

Just a small thing: having a private member get a setter/getter by default seems a bit dangerous because it makes existing code non portable. A big no-no for Sun. A third member annotation, and/or a class annotation could alleviate this easily.

     Erik.</description>
		<content:encoded><![CDATA[<p>Hi Danny,</p>
<p>Spot on! Actually, I was thinking along the same lines already. Guess its kind of obvious <img src='http://www.blog.dannynet.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Just a small thing: having a private member get a setter/getter by default seems a bit dangerous because it makes existing code non portable. A big no-no for Sun. A third member annotation, and/or a class annotation could alleviate this easily.</p>
<p>     Erik.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
