On goto

new topic     » topic index » view thread      » older message » newer message

Hello again -

Re Jiri Babor's comments on 'goto':

I'm pleased to see that remark.  "Conventional wisdom" says that 'goto' is
to be avoided or even to be totally banished, because it causes "spaghetti
code".

It does nothing of the sort.  "Spaghetti code" is the result of careless
programming and of fast coding without thinking through the problem ahead of
time.  Carelessness may be easier when 'goto' is available, and the result
harder to understand, but 'goto' is not the cause of carelessness.  It just
lets a programmer get away with being careless, at least for a while.

Wally Riley
wryly at mindspring.com

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu