[BangPypers] Return values

Noufal Ibrahim KV noufal at nibrahim.net.in
Sat Sep 20 13:17:55 CEST 2014


On Sat, Sep 20 2014, Sriram Karra wrote:


[...]

> I think the comparison is not strictly apples to apples. In case of sort
> ascending / descending flag parameterises the same sort algorithm. In your
> case, you do some additional things (loop through and add up stuff,
> perhaps) based on the value of the flag. That is very different.

[...]

Of course but the API should hide that in a neat way from you shouldn't
it? If I have two "switches" an operation, I'd still like to have just
one function. Not 4 representing all the combinations.

-- 
Cordially,
Noufal
http://nibrahim.net.in


More information about the BangPypers mailing list