MilesCranmer / DispatchDoctor.jl

The dispatch doctor prescribes type stability
Apache License 2.0
128 stars 6 forks source link

To warn or to error, that is the question #28

Closed MilesCranmer closed 4 weeks ago

MilesCranmer commented 1 month ago

This is a question for the community. What should be the default behavior of a @stable-ized function encountering type instability?

Comparison:

However, what should the default be? You can always set the default_mode yourself, or set it via Preferences.jl. If you have a particular point to would like to add you can comment it, otherwise please just vote using emojis (🎉 or 👀 )

MilesCranmer commented 4 weeks ago

Okay this is pretty one-sided in the favor of "error" by 5 votes to 0. So we'll keep it that way.