Stream: compiler development

Topic: roc dev expect failed exit code


view this post on Zulip Anton (Apr 28 2025 at 18:12):

roc dev main.roc (same as just roc main.roc) currently exits with code 0 if an expect failed #7767. This is easy to fix but now the program exits as soon as one expect fails, with the old behavior we ran all expects and printed all failures. Is this early return fine or not?

view this post on Zulip Brendan Hansknecht (Apr 28 2025 at 21:15):

Once the first expect fails, the program is in a broken state.

view this post on Zulip Brendan Hansknecht (Apr 28 2025 at 21:15):

As such, early failure makes sense

view this post on Zulip Brendan Hansknecht (Apr 28 2025 at 21:15):

Long term, this will be up to the platform

view this post on Zulip Brendan Hansknecht (Apr 28 2025 at 21:15):

Like basic webserver probably will log and fail just a single request in the long term

view this post on Zulip Anton (Apr 29 2025 at 14:28):

Just linking to the PR for future searches: https://github.com/roc-lang/roc/pull/7768


Last updated: Jul 06 2025 at 12:14 UTC