pikelet
pikelet copied to clipboard
Figure out a strategy for handling common (usually ignored) errors
Here are some common errors that are often ignored, but would be nice to be able to avoid either statically or ensure they are accounted for at runtime:
- Out of memory errors
- Integer overflow/underflow (ranged integers?)
- Divide by zero
- Loss of numerical precision
- Units of measure mismatches (compile time units of measure lib?)
- Index out of bounds (track array/matrix dimensions at the type level?)