Stream: announcements

Topic: Parens and Commas Calling Syntax now support on latest!


view this post on Zulip Anthony Bullard (Jan 03 2025 at 14:32):

We just merged in support for parens and commas calling syntax (PNC) into the compiler. The traditional whitespace calling syntax is still supported for now. Soon (hopefully by end of week), you will be able to migrate your Roc code to using PNC uniformly with a flag to format. It is currently blocked by builtins and most platforms not having moved to using snake_case and migrate currently migrates both. I'm introducing a change that parameterizes that flag so you can specify what migration you'd like to perform.

view this post on Zulip Anthony Bullard (Jan 03 2025 at 14:34):

So feel free to:

Stdin.line!("Hello, world!")

and

List.walk(list, Set.empty, \set, item ->
    when item is
        GoodToGo(thing) -> Set.insert(set, thing)
        _ -> set)

Last updated: Jul 26 2025 at 12:14 UTC