libmir / mir-random

Advanced Random Number Generators
http://mir-random.libmir.org/
32 stars 15 forks source link

What is the current strategy to handle wrong input? #122

Closed drug007 closed 4 years ago

drug007 commented 4 years ago

In ndvariable assert is used to signal about wrong input. But assert is not convenient very much 'cause it's too fatal. Cannot exceptions be used here?

9il commented 4 years ago

The nothrow option should be preserved by default. Exceptions can be thrown for an additionally defined version.

drug007 commented 4 years ago

I see. Should I close the issue or leave it as is as some kind of docs?