Link Details

You don't even have to leave your chair. Login and vote now.
Link 21708 thumbnail
User 111696 avatar

By bloid
via blog.slickedit.com
Published: May 11 2007 / 01:54

Let me share one of my favorite little programming idioms … do { … } while (false); I picked it up from a friend who learned it from a friend, who probably saw it in a book. It may seem like a do-nothing, but it is a very nice low-budget and high performance exception handling mechanism.
  • 12
  • 10
  • 2275
  • 1206

Comments

Add your comment
User 111696 avatar

bloid replied ago:

0 votes Vote down Vote up Reply

I'd never seen this before...

*blush*

It's quite cool :-)

User 111696 avatar

bloid replied ago:

0 votes Vote down Vote up Reply

hahaha...looks like everyone hates this then? ;)

User 111696 avatar

bloid replied ago:

0 votes Vote down Vote up Reply

Ooooh... More up votes than down now...

User 107114 avatar

daniel replied ago:

0 votes Vote down Vote up Reply

Disturbingly cool.

User 207602 avatar

Jim Wilson replied ago:

0 votes Vote down Vote up Reply

It feels so ... dirty ... but yet alluring at the same time...

-head explodes-

User 111696 avatar

bloid replied ago:

0 votes Vote down Vote up Reply

hahaha :-)

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.