Stream: beginners

Topic: ✔ String interpolation syntax


view this post on Zulip A. J. Edgar Craft (Jan 25 2024 at 18:11):

I'm going through the Roc Tutorial. The string interpolation syntax is "\(value)" but in the documentation it says "$(value)". They both work in the online repl. Will both be part of the language or is one being deprecated in the future?

view this post on Zulip Brendan Hansknecht (Jan 25 2024 at 18:20):

\(value) is deprecated

view this post on Zulip A. J. Edgar Craft (Jan 26 2024 at 00:03):

Thank you @Brendan Hansknecht :+1:

view this post on Zulip Notification Bot (Jan 26 2024 at 00:39):

A. J. Edgar Craft has marked this topic as resolved.

view this post on Zulip Anton (Jan 26 2024 at 12:42):

I've created a PR that modifies the tutorial to use the new syntax


Last updated: Jul 06 2025 at 12:14 UTC