News for hackers. Stuff that matters.
Re:How to avoid the assignment statement by ajuc on Monday July 12, 2010 @05:53AM (#1507349)
> Make functions, not procedures

I can't agree - you don't need results of functions for checking errors - in many higher level languages you can return multiple values, you can use exceptions, even in C++ without exceptions you can do this by in-out parameters, for example:

http://www.nopaste.pl/rtt

I think it's cleaner than making nested if then else-s over every invocation of your functions.

There are no comments on this comment yet.