in reply to Re: What should be returned in scalar context?
in thread What should be returned in scalar context?
I am saying that I as a programmer need to make this choice fairly often, what choices should I tend to make, and why?
As for what to do in void context, my default has always been to treat it like scalar, but some people have already said that they standardizing on having functions mutate the input in place in void context. So yes, thinking through void context as well might make sense. (Though I probably won't because the only suggestion that I have seen runs too far counter to the rest of my personal style.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: What should be returned in scalar context?
by duff (Parson) on Dec 02, 2003 at 16:31 UTC |