Stream: beginners

Topic: Weird `dbg` behavior


view this post on Zulip Undefined Behavior (Mar 19 2025 at 05:58):

TL;DR: I can't reproduce a compiler error related to the use of dbg, but thought I'd mention it.

Earlier today I played around with dbg <expression> and then roc check failed with some Rust unwrap error. I tried running the same code hours later, and everything worked. Weird, right? Anyone seen this before?

(Yes I know there may be compiler bugs)

$ roc version
roc nightly pre-release, built from commit 3da0934 on Tue Mar  4 09:24:38 UTC 2025

view this post on Zulip Luke Boswell (Mar 19 2025 at 05:58):

That sounds like Undefined Behaviour to me

view this post on Zulip Luke Boswell (Mar 19 2025 at 05:58):

Scary stuff


Last updated: Jul 06 2025 at 12:14 UTC