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?
!
now does nothing. Just part of the name of a function
That said, roc requires that all functions that might call an effect must have !
in the name and pure functions can not.
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
Yep
ok totally ty
Sidenote: !
is an operator when used as not
in !Bool.true
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
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