cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Functions that intentionally resolve to an error with no catch

Functions that intentionally resolve to an error with no catch

Is really annoying to try catching errors just to create one when no error is found...

 

For example, matchNaN throws an error is no NaN are found.  Instead, -1 would be a perfectly acceptable index to return.  Similarly for other match and lookup functions.  Instead, I have to define my own function matchNaN2() with a try/on-error clause...

 

NaN are very useful as placeholders in matrices, rather than resolving (automatically) as zeroes. 

Nested arrays avoid this, but then become more difficult to index.

1 Comment
olivierlp
Community Manager
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.