Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment Re:why? (Score 1) 677

I don't know. I think it's case dependent. In the example cited, the cleanup code is simple function calls and the operations are different for each case (for one, it's one cleanup, for another, it's two and for the success it's three).

Part of the problem is, the examples are really too small to call either way. I try to aim for my code to be clean and understandable and not to be dogmatic about things. I avoid certain Perl idioms for just this reason. Though I certainly agree that TMTOWTDI

Comment Re:why? (Score 1) 677

The difference is that it's immediately obvious what a return statement is doing whereas the goto puts the flow of code "elsewhere" and might be leaving things in a weird state (granted that the OP has since claimed he intended to put some cleanup code before his return which could change the circumstances).

Comment Re:just want I wanted! (Score 1) 307

You are completely right. I still use my EEEpc. Though more often I use my Chromebook which has more modern specs and a better for factor (not reflashed though. For advanced features, remoting works well for my needs).

The sibling post of mine notes that you can effectively get a netbook by having a tablet and adding a keyboard. Sorry, I like my keyboard pre-attached. I do have a tablet but it has mostly fallen to being used as a remote control for mythtv and for my daughter to track her yu-gi-oh games. My chromebook is in constant use when I'm not at my main desktop.

Slashdot Top Deals

Never test for an error condition you don't know how to handle. -- Steinbach

Working...