prSimpleNumberSeries throws incomprehensible error for bad inputs #882
Labels
bug
Issues that relate to unexpected/unwanted behavior. Don't use for PRs.
comp: sclang
sclang C++ implementation (primitives, etc.). for changes to class lib use "comp: class library"
Perhaps some more graceful error handling for this?
Agreed that this is programmer error. But, would it be reasonable to return an empty array in this case instead of throwing an inscrutable error?
Incidentally, I'm concerned here that the primitive just blindly goes ahead with a nonsense size calculation. Better to check the case rather than hope it doesn't try to allocate too large a memory block.
The text was updated successfully, but these errors were encountered: