On Sun, Jul 1, 2012 at 10:28 PM, Joel Berger <[email protected]>wrote:
> > > > I'm with Craig on this: you should *clearly* document that these > functions > > expect integers and they will perform integer rounding. > > I think that they could round, but you would want to throw a warning > stating that it happened. Make it something that you can turn off, but > it should be noisy by default. > > Joel > Hmm, I have mixed feelings about a warning. In particular, the "proper" way to handle warnings is to tap into Perl's lexical warnings system, but that would require a minimum Perl version of 5.10. As it is, though, we don't really have a well developed PDL warnings system. Throwing a warning might make sense, but in that case, you should file a feature request that we finally develop a full PDL warnings system. David -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." -- Brian Kernighan
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
