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

> Anything and everything can fail.

In my experience this is only true until you switch to a style where memory allocations (which are used in "anything and everything") are given to functions as arguments (from the top) rather than via malloc or such.

When allocations are given as arguments, the main reason for errors/failures disappears and a blissful ripple effect of failure-returning -> void-returning functions usually results.



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

Search: