<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-336308386934546555.post3073976543799228049..comments</id><updated>2010-04-29T06:55:21.407+08:00</updated><title type='text'>Comments on C for Coding: Mutability, Arrays and the Cost of Temporary Objec...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.cforcoding.com/feeds/3073976543799228049/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/3073976543799228049/comments/default'/><link rel='alternate' type='text/html' href='http://www.cforcoding.com/2009/12/mutability-arrays-and-cost-of-temporary.html'/><author><name>William Shields</name><uri>http://www.blogger.com/profile/18356811199950883367</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-336308386934546555.post-5980601309020212423</id><published>2010-04-29T06:55:21.399+08:00</published><updated>2010-04-29T06:55:21.399+08:00</updated><title type='text'>@Josh it's true that Java enums are more object (s...</title><content type='html'>@Josh it&amp;#39;s true that Java enums are more object (struct) than scalar value but they are compared like a scalar so you do:&lt;br /&gt;&lt;br /&gt;if (season1 == season2) ...&lt;br /&gt;&lt;br /&gt;not&lt;br /&gt;&lt;br /&gt;if (season1.equals(season2)) ...&lt;br /&gt;&lt;br /&gt;Can structs in C# have behaviour? I don&amp;#39;t actually know. The &amp;quot;value type&amp;quot; part is more likely about the fact that it can be stored on the stack rather than the heap, which is extremely useful in some instances.&lt;br /&gt;&lt;br /&gt;For example: they&amp;#39;ve ported Git to Java but there are things C can do that Java is nowhere as near as efficient as and one of them is being able to pass 20 byte SHA1 value objects on the stack, which C# can do.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/3073976543799228049/comments/default/5980601309020212423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/3073976543799228049/comments/default/5980601309020212423'/><link rel='alternate' type='text/html' href='http://www.cforcoding.com/2009/12/mutability-arrays-and-cost-of-temporary.html?showComment=1272495321399#c5980601309020212423' title=''/><author><name>William Shields</name><uri>http://www.blogger.com/profile/18356811199950883367</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='07140129710674369084'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.cforcoding.com/2009/12/mutability-arrays-and-cost-of-temporary.html' ref='tag:blogger.com,1999:blog-336308386934546555.post-3073976543799228049' source='http://www.blogger.com/feeds/336308386934546555/posts/default/3073976543799228049' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-336308386934546555.post-4576415107916246944</id><published>2010-04-29T05:49:45.543+08:00</published><updated>2010-04-29T05:49:45.543+08:00</updated><title type='text'>This is an old post, and maybe comments are irrele...</title><content type='html'>This is an old post, and maybe comments are irrelevant now, however I wanted to question the comparison of enums between Java and c#.&lt;br /&gt;&lt;br /&gt;You say that enums within c# are just thinly wrapped ints, and that is correct. Though I think the comparison with Java enums is invalid. By the look of it, Java enums more closely resemble structs in c#, which are value types and therefore immutable. Would you agree?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/3073976543799228049/comments/default/4576415107916246944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/3073976543799228049/comments/default/4576415107916246944'/><link rel='alternate' type='text/html' href='http://www.cforcoding.com/2009/12/mutability-arrays-and-cost-of-temporary.html?showComment=1272491385543#c4576415107916246944' title=''/><author><name>Josh Smeaton</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.cforcoding.com/2009/12/mutability-arrays-and-cost-of-temporary.html' ref='tag:blogger.com,1999:blog-336308386934546555.post-3073976543799228049' source='http://www.blogger.com/feeds/336308386934546555/posts/default/3073976543799228049' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-336308386934546555.post-3731296804567298947</id><published>2009-12-30T14:43:19.983+08:00</published><updated>2009-12-30T14:43:19.983+08:00</updated><title type='text'>hi,

First of all. Thanks very much for your usefu...</title><content type='html'>hi,&lt;br /&gt;&lt;br /&gt;First of all. Thanks very much for your useful post.&lt;br /&gt;&lt;br /&gt;I just came across your blog and wanted to drop you a note telling you how impressed I was with the information you have posted here.&lt;br /&gt;&lt;br /&gt;Please let me introduce you some info related to this post and I hope that it is useful for .Net community.&lt;br /&gt;&lt;br /&gt;There is a good C# resource site, Have alook&lt;br /&gt; &lt;br /&gt;http://csharptalk.com&lt;br /&gt;&lt;br /&gt;simi</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/3073976543799228049/comments/default/3731296804567298947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/3073976543799228049/comments/default/3731296804567298947'/><link rel='alternate' type='text/html' href='http://www.cforcoding.com/2009/12/mutability-arrays-and-cost-of-temporary.html?showComment=1262155399983#c3731296804567298947' title=''/><author><name>simi</name><uri>http://csharptalk.com</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.cforcoding.com/2009/12/mutability-arrays-and-cost-of-temporary.html' ref='tag:blogger.com,1999:blog-336308386934546555.post-3073976543799228049' source='http://www.blogger.com/feeds/336308386934546555/posts/default/3073976543799228049' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-336308386934546555.post-3623845520254829022</id><published>2009-12-30T07:28:48.539+08:00</published><updated>2009-12-30T07:28:48.539+08:00</updated><title type='text'>I suppose it is these sorts of problems that has b...</title><content type='html'>I suppose it is these sorts of problems that has been driving the interest in Erlang, Clojure and all the rest.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/3073976543799228049/comments/default/3623845520254829022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/3073976543799228049/comments/default/3623845520254829022'/><link rel='alternate' type='text/html' href='http://www.cforcoding.com/2009/12/mutability-arrays-and-cost-of-temporary.html?showComment=1262129328539#c3623845520254829022' title=''/><author><name>Lawrence Krubner</name><uri>http://www.teamlalala.com/blog/</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.cforcoding.com/2009/12/mutability-arrays-and-cost-of-temporary.html' ref='tag:blogger.com,1999:blog-336308386934546555.post-3073976543799228049' source='http://www.blogger.com/feeds/336308386934546555/posts/default/3073976543799228049' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-336308386934546555.post-2830043743145165469</id><published>2009-12-29T21:41:57.453+08:00</published><updated>2009-12-29T21:41:57.453+08:00</updated><title type='text'>I'd forgotten how Java is dirty.</title><content type='html'>I&amp;#39;d forgotten how Java is dirty.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/3073976543799228049/comments/default/2830043743145165469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/3073976543799228049/comments/default/2830043743145165469'/><link rel='alternate' type='text/html' href='http://www.cforcoding.com/2009/12/mutability-arrays-and-cost-of-temporary.html?showComment=1262094117453#c2830043743145165469' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.cforcoding.com/2009/12/mutability-arrays-and-cost-of-temporary.html' ref='tag:blogger.com,1999:blog-336308386934546555.post-3073976543799228049' source='http://www.blogger.com/feeds/336308386934546555/posts/default/3073976543799228049' type='text/html'/></entry></feed>