Stream: beginners

Topic: searching roc-lang.org


view this post on Zulip Drewry Pope (Jul 15 2025 at 01:01):

i've been trying to google but most of the syntax in old search results is different now. i was thinking about making a fancy google search using site: tag but wondered if it made more sense to add ctrl+k/search bar that would search across the roc-lang.org website and maybe github & generated docs? if you rebuild on new roc versions you could statically render autocomplete

i found the desugaring table and the desugar for ?, i read that all operators are sugar, how does ! desugar? there is no longer a task obj right? can i run operations without immediately awaiting them?

view this post on Zulip Brendan Hansknecht (Jul 15 2025 at 01:04):

! now does nothing. Just part of the name of a function

view this post on Zulip Brendan Hansknecht (Jul 15 2025 at 01:05):

That said, roc requires that all functions that might call an effect must have ! in the name and pure functions can not.

view this post on Zulip Drewry Pope (Jul 15 2025 at 01:06):

okay so it's not actually an operator it's like, a requirement of the function name if it's effectful, basically if it uses a host function at any point during execution

view this post on Zulip Brendan Hansknecht (Jul 15 2025 at 01:06):

Yep

view this post on Zulip Drewry Pope (Jul 15 2025 at 01:06):

ok totally ty

view this post on Zulip Anton (Jul 15 2025 at 09:10):

Sidenote: ! is an operator when used as not in !Bool.true

view this post on Zulip Anton (Jul 15 2025 at 09:13):

if it made more sense to add ctrl+k/search bar that would search across the roc-lang.org website and maybe github & generated docs

Yeah, we need a centralized search

view this post on Zulip Anton (Jul 15 2025 at 09:23):

If you need it, I got started on a single file demo of all syntax: https://github.com/roc-lang/examples/pull/237/files


Last updated: Jul 26 2025 at 12:14 UTC