- 
          
- 
        Couldn't load subscription status. 
- Fork 5.7k
Open
Labels
error handlingHandling of exceptions by Julia or the userHandling of exceptions by Julia or the user
Description
People often use @assert in their code to check that functions are being used correctly. It's typical in other systems to eliminate assertions under higher optimization levels. Should we do that under --optimize? If assertions are ignored (compiled to no-ops) but also used to check correct usage – as opposed to checking the correctness of internal logic – then this can accidentally introduce a dangerous lack of argument checking. So perhaps we should introduce a @check macro that is not eliminated by --optimize and is intended for checking usage as opposed to internal correctness.
cossio, BeastyBlacksmith, alice-i-cecile, schneiderfelipe, 00vareladavid and 11 more
Metadata
Metadata
Assignees
Labels
error handlingHandling of exceptions by Julia or the userHandling of exceptions by Julia or the user