Stream: beginners

Topic: Roc Tutorial Issues


view this post on Zulip Ryan Bates (Nov 17 2023 at 18:50):

I'm going through the tutorial and have noticed a few issues. For example, the Naming Things section has you type val1 but never does the val1 = "Hello World" assignment.

Should I post tutorial issues on the GitHub repo or is there a better place?

view this post on Zulip Luke Boswell (Nov 17 2023 at 18:51):

Did you type "Hello World" into the repl? It will be assigned to val1

view this post on Zulip Ryan Bates (Nov 17 2023 at 18:53):

@Luke Boswell yes, I typed "Hello World" and then val1 and got "Nothing is named val1 in this scope" error. This is on roc nightly build.

view this post on Zulip Ryan Bates (Nov 17 2023 at 18:54):

Is val1 supposed to be a magic variable that is assigned the result of the previous expression in the REPL?

view this post on Zulip Luke Boswell (Nov 17 2023 at 18:54):

I wonder if we changed the names REPL assigned then?

view this post on Zulip Luke Boswell (Nov 17 2023 at 18:55):

Yeah, it was sequentially assigning to valN

view this post on Zulip Ryan Bates (Nov 17 2023 at 18:55):

It would be good to explain that in the tutorial if that's the case. Although looks like it's not working for me.

view this post on Zulip Luke Boswell (Nov 17 2023 at 18:56):

Yeah either way the tutorial will need an update. I would say thats a great issue to raise. Should be an easy update to the tutorial.

view this post on Zulip Anton (Nov 17 2023 at 18:58):

I believe @Richard Feldman removed this auto-declaring/naming feature from the repl

view this post on Zulip Luke Boswell (Nov 17 2023 at 19:05):

If anyone would like to make this change, note that the tutorial is currently in two places, in the wip site and also in the current generate tutorial folder both in www

view this post on Zulip Ryan Bates (Nov 17 2023 at 19:33):

I added an issue for this here: https://github.com/roc-lang/roc/issues/6001

view this post on Zulip Richard Feldman (Nov 17 2023 at 22:46):

thank you! Yeah we took this out of the repl and I thought I updated everywhere the old way was mentioned, but apparently I missed at least one spot :sweat_smile:


Last updated: Jul 05 2025 at 12:14 UTC