Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'd guess you could use function pointers to implement the example without goto?

https://www.opensourceforu.com/2012/02/function-pointers-and...

Then I looked up 'callbacks considered harmful'. Hmmm....

It's probably easier for an IDE to track down a function if you want to see how the code works, however, and the function might have some useful explanatory comments.

Suggested article: "People who claim code can explain itself considered harmful"



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: