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?
Did you type "Hello World" into the repl? It will be assigned to val1
@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.
Is val1
supposed to be a magic variable that is assigned the result of the previous expression in the REPL?
I wonder if we changed the names REPL assigned then?
Yeah, it was sequentially assigning to valN
It would be good to explain that in the tutorial if that's the case. Although looks like it's not working for me.
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.
I believe @Richard Feldman removed this auto-declaring/naming feature from the repl
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
I added an issue for this here: https://github.com/roc-lang/roc/issues/6001
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