Click here to Skip to main content
15,901,505 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: How about new syntactical sugar for exception checking? Pin
PIEBALDconsult21-Jul-16 14:29
mvePIEBALDconsult21-Jul-16 14:29 
GeneralRe: How about new syntactical sugar for exception checking? Pin
BillWoodruff21-Jul-16 15:46
professionalBillWoodruff21-Jul-16 15:46 
GeneralRe: How about new syntactical sugar for exception checking? Pin
Roger Wright21-Jul-16 20:55
professionalRoger Wright21-Jul-16 20:55 
GeneralRe: How about new syntactical sugar for exception checking? Pin
Duncan Edwards Jones21-Jul-16 21:09
professionalDuncan Edwards Jones21-Jul-16 21:09 
GeneralRe: How about new syntactical sugar for exception checking? Pin
Dan Neely22-Jul-16 2:55
Dan Neely22-Jul-16 2:55 
GeneralRe: How about new syntactical sugar for exception checking? Pin
Chris Maunder22-Jul-16 3:50
cofounderChris Maunder22-Jul-16 3:50 
GeneralRe: How about new syntactical sugar for exception checking? Pin
TheGreatAndPowerfulOz22-Jul-16 3:42
TheGreatAndPowerfulOz22-Jul-16 3:42 
GeneralRe: How about new syntactical sugar for exception checking? Pin
agolddog22-Jul-16 3:45
agolddog22-Jul-16 3:45 
Chris Maunder wrote:
string result = DodgyApi.GetValue*();


What about

string result = DodgyApi.GetValue*(value);

as you don't always want the type default. Not sure how we define my value for reference types, maybe it could use the C# new type { prop1 = val1, ...} paradigm?

Anyway, no, bad idea. I want to fire people who silently swallow exceptions. At least, the code should be logging at some level, "hey, DodgyApi failed, using default value x" so that (in theory) somebody could investigate and make the api somewhat less dodgy.
GeneralRe: How about new syntactical sugar for exception checking? Pin
englebart22-Jul-16 4:29
professionalenglebart22-Jul-16 4:29 
GeneralRe: How about new syntactical sugar for exception checking? Pin
Gerry Schmitz22-Jul-16 10:17
mveGerry Schmitz22-Jul-16 10:17 
GeneralRe: How about new syntactical sugar for exception checking? Pin
Chris Maunder24-Jul-16 15:21
cofounderChris Maunder24-Jul-16 15:21 
GeneralRe: How about new syntactical sugar for exception checking? Pin
Kiriander25-Jul-16 2:10
Kiriander25-Jul-16 2:10 
GeneralMost hilarious computer article Pin
patbob21-Jul-16 6:57
patbob21-Jul-16 6:57 
GeneralRe: Most hilarious computer article Pin
Chris Maunder21-Jul-16 7:03
cofounderChris Maunder21-Jul-16 7:03 
GeneralRe: Most hilarious computer article Pin
RossMW21-Jul-16 10:20
professionalRossMW21-Jul-16 10:20 
GeneralRe: Most hilarious computer article Pin
Michael Martin21-Jul-16 17:01
professionalMichael Martin21-Jul-16 17:01 
GeneralRe: Most hilarious computer article Pin
Chris Maunder24-Jul-16 15:37
cofounderChris Maunder24-Jul-16 15:37 
GeneralRe: Most hilarious computer article Pin
Ravi Bhavnani21-Jul-16 7:32
professionalRavi Bhavnani21-Jul-16 7:32 
GeneralRe: Most hilarious computer article Pin
Roger Wright21-Jul-16 21:01
professionalRoger Wright21-Jul-16 21:01 
GeneralRe: Most hilarious computer article Pin
Ravi Bhavnani22-Jul-16 2:59
professionalRavi Bhavnani22-Jul-16 2:59 
GeneralRe: Most hilarious computer article Pin
StM0n21-Jul-16 19:43
StM0n21-Jul-16 19:43 
GeneralRe: Most hilarious computer article Pin
2374121-Jul-16 21:41
2374121-Jul-16 21:41 
GeneralI was sent this, and ... Pin
OriginalGriff21-Jul-16 5:28
mveOriginalGriff21-Jul-16 5:28 
GeneralRe: I was sent this, and ... Pin
Nagy Vilmos21-Jul-16 6:01
professionalNagy Vilmos21-Jul-16 6:01 
GeneralRe: I was sent this, and ... Pin
OriginalGriff21-Jul-16 6:16
mveOriginalGriff21-Jul-16 6:16 

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.