Stream: beginners

Topic: Reserved keywords


view this post on Zulip Agus Zubiaga (Sep 15 2023 at 19:11):

Last night, I was updating roc-pg to work with the latest Roc version and it seems that where is no longer a valid identifier. Is this intentional? I guess this related to the new syntax for abilities, but I thought I read that the keywords used there would still be available.

view this post on Zulip Richard Feldman (Sep 15 2023 at 21:38):

oops yeah sounds like a bug! Can you open an issue for it?

view this post on Zulip Agus Zubiaga (Sep 15 2023 at 21:41):

Sure! Will do when I’m back at the keyboard

view this post on Zulip Agus Zubiaga (Sep 15 2023 at 21:42):

I’m glad I won’t have to call it wher 😀

view this post on Zulip Richard Feldman (Sep 15 2023 at 22:44):

yeah this is a great example of why I think it's worth having separate reserved keywords for types vs values - this is a clear ergonomics win for anyone using roc-pg!

view this post on Zulip Agus Zubiaga (Sep 15 2023 at 22:58):

Absolutely! It’s a big ergonomics win for any eDSL which will probably be pretty common in the ecosystem

view this post on Zulip Agus Zubiaga (Sep 17 2023 at 12:42):

Here's the issue: https://github.com/roc-lang/roc/issues/5823


Last updated: Jul 06 2025 at 12:14 UTC