You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some SRFIs use assume in arguments checking (like SRFI-214, flexvectors). Others always raise an error.
Maybe this should be standardized? Either always one of them, or always the other?
I can slowly change the SRFIs to always use assume if you think this is OK.
The text was updated successfully, but these errors were encountered:
The pro of assume is that the test is not done if you are not in debug mode (it's expansion is #void, so it's fast 😄). The con is that if the user doesn't set the debug flag, its code could fail miserably. In this way, its very similar to the C assert function.
IMHO, assume should be used for internal functions to assume that a certain property is true at a given point, but if the test involves a data given by the user error is better. So both can probably cohabit in a program.
Hi @egallesio !
Some SRFIs use
assume
in arguments checking (like SRFI-214, flexvectors). Others always raise an error.Maybe this should be standardized? Either always one of them, or always the other?
I can slowly change the SRFIs to always use
assume
if you think this is OK.The text was updated successfully, but these errors were encountered: