Stream: beginners

Topic: dbg keyword


view this post on Zulip Artur Swiderski (Nov 25 2022 at 23:33):

are you sure that dbg keyword works, seems like it is not recognized by compiler. Sorry I have closed my environment already so I can't paste compiler output but it seems like dead keyword

view this post on Zulip Folkert de Vries (Nov 25 2022 at 23:38):

yeah I think it was missed as a keyword. it also only works within a let-block (so not on the top-level)

view this post on Zulip Artur Swiderski (Nov 25 2022 at 23:39):

in tutorial this information is omitted

view this post on Zulip Folkert de Vries (Nov 25 2022 at 23:46):

it's fixed on trunk now, but not yet in the nightlies

view this post on Zulip Richard Feldman (Nov 26 2022 at 01:27):

yeah it's very new, like less than 24 hours old :big_smile:

view this post on Zulip Richard Feldman (Nov 26 2022 at 01:27):

so might need a new nightly binary!

view this post on Zulip Richard Feldman (Nov 26 2022 at 01:32):

https://github.com/roc-lang/roc/issues/4577 is the issue for telling people about how it can't be used at the top level; I think this is the fix we should go with rather than adding it to the tutorial, because once that's implemented, you'll find out right away if you try it :big_smile:

view this post on Zulip Anton (Nov 26 2022 at 11:06):

I have uploaded the new nightlies except for macos x86_64


Last updated: Jul 06 2025 at 12:14 UTC