<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>The &amp; operator (Concatenation)</title><link>http://msmvps.com/blogs/bill/archive/2006/04/23/92280.aspx</link><description>In my previous blog posting I talked briefly about the + operator, and hopefully people realized that perhaps for string concatenation they should use the &amp;amp; operator. So I thought it probably best to also discuss the &amp;amp; operator in excruciating</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>The &amp;operator</title><link>http://msmvps.com/blogs/bill/archive/2006/04/23/92280.aspx#986139</link><pubDate>Mon, 25 Jun 2007 02:53:02 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:986139</guid><dc:creator>@ Head</dc:creator><description>&lt;p&gt;I just read again today the claim that you should use + for string concatenation in VB. You should NOT&lt;/p&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=986139" width="1" height="1"&gt;</description></item><item><title>Obscure language bug #29: Intrinsics and operator overloading</title><link>http://msmvps.com/blogs/bill/archive/2006/04/23/92280.aspx#92573</link><pubDate>Tue, 25 Apr 2006 20:25:33 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:92573</guid><dc:creator>Panopticon Central</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=92573" width="1" height="1"&gt;</description></item><item><title>Why doesn't concatenation work with non intrinsic types ?</title><link>http://msmvps.com/blogs/bill/archive/2006/04/23/92280.aspx#92459</link><pubDate>Tue, 25 Apr 2006 02:55:36 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:92459</guid><dc:creator>@ Head</dc:creator><description>If you used VB.NET, you might have noticed that you can't do concatenation on non intrinsic types. For...&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=92459" width="1" height="1"&gt;</description></item><item><title>re: The &amp;amp; operator (Concatenation)</title><link>http://msmvps.com/blogs/bill/archive/2006/04/23/92280.aspx#92294</link><pubDate>Mon, 24 Apr 2006 06:36:56 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:92294</guid><dc:creator>bill</dc:creator><description>&amp;lt;g&amp;gt;  Not sure if you mean operators in general, or just on reference types.  &lt;br&gt;With reference types that aren't sealed, I think instance functions are generally preferable, but that would be a broad critisism of the use of Public Shared (aka public static methods), not just operators.&lt;br&gt;On operator overloading, I think it usually best to minimise their usage. There's very few cases where the behaviour is always clear and intuitive. Conversion operators being the most common usage.&lt;br&gt;That of course leads us back to the &amp;quot;bug&amp;quot; or behaviour of &amp;amp; with custom types.  I think it would be preferable that the behaviour does accept the widening operator to string if it does exist, as then people won't be defining the &amp;amp; operator rather they'll just use the &amp;amp; operator on the strings, e.g:&lt;br&gt;&lt;br&gt;x = foo1 &amp;amp; &amp;quot;-&amp;quot; &amp;amp; foo2&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=92294" width="1" height="1"&gt;</description></item><item><title>re: The &amp;amp; operator (Concatenation)</title><link>http://msmvps.com/blogs/bill/archive/2006/04/23/92280.aspx#92292</link><pubDate>Mon, 24 Apr 2006 05:55:38 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:92292</guid><dc:creator>David M. Kean</dc:creator><description>God help us all if users actually started to define these operators on reference types...&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=92292" width="1" height="1"&gt;</description></item></channel></rss>