News for hackers. Stuff that matters.
Re:Safe dead code removal in a pure functional language by account42 on Friday January 29, 2021 @08:12AM (#25956885)
Asserts are not for runtime errors, but for verification of assumptions in debug builds. Essentially, they are mini-test run on real data during normal use (of a debug build).

Making it so you can't have asserts will just mean that you won't have those kind of tests.

Re:Safe dead code removal in a pure functional language by jfmengels1 on Friday January 29, 2021 @10:36AM (#25958302)
Ah alright. That's an interesting technique! You can't do that in Elm, you'd have to rely on the technique I mentioned above and regular tests.