Teucer's Quiver
Me && .net

Spot the bug ...

Wednesday, September 29, 2004 4:07 PM

string urlPrefix = aci.SecureHttp ? "https://" : "http://" + aci.ServerName;

Surprising some one didnt unit test this piece of code...


Feedback

# re: Spot the bug ...

Exactly why inline if's are for the birds. Learn to type I say! :D 9/29/2004 4:13 PM | Jeff Julian

# re: Spot the bug ...

You have to wonder why Anders left the ternary operator and break inside switch statements in the language. Yes - I know that it is so that people feel comfy moving fro C++ and Java to C# - but couldnt we have lost these montrosities once and for all. And the funny part is that the JIT performance for if{}else{} is better than ternary operators - check out Justin Rogers' blog for the stats 10/4/2004 11:35 AM | Sriram

Post a comment