Click here to Skip to main content
15,891,868 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
Afzaal Ahmad Zeeshan18-Aug-15 10:09
professionalAfzaal Ahmad Zeeshan18-Aug-15 10:09 
GeneralRe: Sharp regrets: Top 10 worst C# features PinPopular
Vark11118-Aug-15 10:39
Vark11118-Aug-15 10:39 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
Jörgen Andersson18-Aug-15 10:44
professionalJörgen Andersson18-Aug-15 10:44 
GeneralRe: Sharp regrets: Top 10 worst C# features PinPopular
Pete O'Hanlon18-Aug-15 11:38
mvePete O'Hanlon18-Aug-15 11:38 
GeneralRe: Sharp regrets: Top 10 worst C# features PinPopular
Wonde Tadesse18-Aug-15 12:05
professionalWonde Tadesse18-Aug-15 12:05 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
TheGreatAndPowerfulOz18-Aug-15 12:16
TheGreatAndPowerfulOz18-Aug-15 12:16 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
Rob Grainger19-Aug-15 0:40
Rob Grainger19-Aug-15 0:40 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
PIEBALDconsult18-Aug-15 11:18
mvePIEBALDconsult18-Aug-15 11:18 
I don't mind any of the things he calls out, but then I'm developer not a language designer.

My pet peeves with C#, if I can recall them all, in no particular order:

C# v1 should have never seen the light of day. (Even though I have been a fan of C# since I saw the first published spec in 1999.)

The partial keyword to add back what has always been in C++ but which C# v1 lacked for no apparent reason. As in C++, all classes should be partial, no need for a keyword. What does non-partialness gain you?

Use of the this keyword for Extension Methods, rather than the simple direct use of the Attribute. (Just do what VB does.)

The sillyness of being able to eliminate the "Attribute" part of an Attribute name. Why? To save a few keystrokes? So why not also allow us to drop the "Exception" part of an Exception name? Don't you write a lot more Exceptions and handlers than Attributes? catch (NullReference err)...

The inability to specify enum as a generic constraint. (Jon Skeet has written about this too.)

If enum values are always numeric, then why not allow numeric operations on them? The compiler knows what they are. If a member of an enum IS_AN int, then let it do what an int can do!



Add: An ISNT (or AINT) operator so we don't have to do if ( !( x is y ) )...

modified 19-Aug-15 13:11pm.

GeneralRe: Sharp regrets: Top 10 worst C# features Pin
Rob Grainger19-Aug-15 1:30
Rob Grainger19-Aug-15 1:30 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
Dan Neely19-Aug-15 3:04
Dan Neely19-Aug-15 3:04 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
PIEBALDconsult19-Aug-15 8:51
mvePIEBALDconsult19-Aug-15 8:51 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
newton.saber18-Aug-15 11:25
newton.saber18-Aug-15 11:25 
GeneralRe: Sharp regrets: Top 10 worst C# features PinPopular
Pete O'Hanlon18-Aug-15 11:40
mvePete O'Hanlon18-Aug-15 11:40 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
newton.saber19-Aug-15 1:29
newton.saber19-Aug-15 1:29 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
PIEBALDconsult19-Aug-15 7:06
mvePIEBALDconsult19-Aug-15 7:06 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
newton.saber19-Aug-15 7:35
newton.saber19-Aug-15 7:35 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
PIEBALDconsult19-Aug-15 7:40
mvePIEBALDconsult19-Aug-15 7:40 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
phil.o18-Aug-15 11:55
professionalphil.o18-Aug-15 11:55 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
harold aptroot18-Aug-15 12:42
harold aptroot18-Aug-15 12:42 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
PIEBALDconsult19-Aug-15 7:17
mvePIEBALDconsult19-Aug-15 7:17 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
Pete O'Hanlon19-Aug-15 2:19
mvePete O'Hanlon19-Aug-15 2:19 
JokeRe: Sharp regrets: Top 10 worst C# features Pin
Matt T Heffron19-Aug-15 6:11
professionalMatt T Heffron19-Aug-15 6:11 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
PIEBALDconsult19-Aug-15 9:04
mvePIEBALDconsult19-Aug-15 9:04 
GeneralRe: Sharp regrets: Top 10 worst C# features Pin
Pete O'Hanlon19-Aug-15 22:22
mvePete O'Hanlon19-Aug-15 22:22 
News7 bad habits of highly ineffective software engineers Pin
Kent Sharkey18-Aug-15 9:51
staffKent Sharkey18-Aug-15 9:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.