Get the latest tech news

Check Maybe Div by Zero for Gleam


Checks gleam source code for potential division by zero in a hacky way :D

In effect any literal division by zero in gleam returns a zero. This helper checks gleam code for potential(!) You may run gleam run --module check_maybe_div_by_zero which returns exit(0) if no potential division by zero is found, and exit(1) if a potential division by zero is found.

Get the Android app

Or read this on Hacker News