Stream: ideas

Topic: ✔ Thoughts on static dispatch


view this post on Zulip Matthieu Pizenberg (Feb 10 2025 at 08:03):

I just took some time to read the static dispatch proposal https://docs.google.com/document/d/1OUd0f4PQjH8jb6i1vEJ5DOnfpVBJbGTjnCakpXAYeT8/edit?tab=t.0#heading=h.vuo6e14bvfkt

My opinion is I only like the static dispatch part, and not the syntax changes. I would much prefer keeping the pipe and spaces plus partial application with holes.

"Hello"
|> replaceEach "l" "p"
|> replaceFirst "e" "i"

[-2, 0, 2] |> map (abs _ - 1)

If the reason is only "better autocomplete" with editors or "familiarity for OO programmers", it’s short-sighted IMO, because we can both improve autocomplete logic to recognize pipes, and in a world where LLMs are getting embedded in editors, we are starting to get much more powerful autocomplete abilities.

Spaces are much cleaner for the reader than parenthesis everywhere. It’s a clear syntax regression in my view.

view this post on Zulip Sam Mohr (Feb 10 2025 at 08:14):

Richard Feldman said:

I know I rarely do the explicit "this is the way forward" thing, but it seems like this is a case where we need a really clear decision, so:

let's plan for Roc 0.1.0 to support parens-and-commas calling, and not whitespace calling.

After tons and tons of discussion on the subject, we're taking a break from yakshaving this one because we're pretty confident that Roc will be moving forwards with parentheses longterm

view this post on Zulip Sam Mohr (Feb 10 2025 at 08:15):

Maybe in the future we revisit this discussion, but just to set expectations, we won't be changing our decision on this during these next 6 months at least, while we focus our efforts strongly on rewriting the compiler

view this post on Zulip Sam Mohr (Feb 10 2025 at 08:18):

Consider reading the "reflecting on static dispatch" topic

view this post on Zulip Matthieu Pizenberg (Feb 10 2025 at 08:18):

Understood. I still wanted to express my thoughts.

view this post on Zulip Sam Mohr (Feb 10 2025 at 08:18):

Glad to have you do so!

view this post on Zulip Sam Mohr (Feb 10 2025 at 08:18):

Just wanted to set expectations

view this post on Zulip Matthieu Pizenberg (Feb 10 2025 at 08:18):

Sam Mohr said:

Consider reading the "reflecting on static dispatch" topic

I started to, but it was way to long for me to actually do, it’s why I opened a new thread.

view this post on Zulip jan kili (Feb 12 2025 at 21:49):

I'm resolving all WSA defense/discussion threads in order to transition us into planning this: #contributing > deprecating WSA (whitespace application for function calls)

If you feel there's more to say here, feel free to un-resolve it!

view this post on Zulip Notification Bot (Feb 12 2025 at 21:49):

JanCVanB has marked this topic as resolved.


Last updated: Jun 16 2026 at 16:19 UTC