- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
This has been a fascinating discussion to read. Glad I could provide the WTF. Some more clarification: The methods were in the same namespace. The only time that the second method was called was with both parameters.
Admin
I seem to remember getting a compiler error in VS 2010 about this exact thing. Perhaps this restriction was relaxed in newer C# versions.
Admin
Extension methods in C# reminds me of similar feature dynamically typed languages like Ruby/ Python/ Groovy. Even though it may seem beneficial and improve readability - it will only work on single member projects. The moment you have a team of developers then ambiguities like these happen. Another example is Perl - very readable but completely unmaintainable even by the same dude who wrote it 3 months back. Humans tend to have individualistic opinions on how same verb may be used on an entity to denote subtly different actions. It is best to avoid extensions if your project if is not a single person hobby.
From the discussion it seems to me that C# programmers are rather sensitive species :)