Stream: beginners

Topic: Odd error message


view this post on Zulip Wyatt Osterling (Dec 07 2023 at 07:18):

I’m inexperienced So I hesitate to call this a bug, however an extremely odd error happened. There is a -> next, so I am not sure why this is happening

I was partway through parsing a  function, but I got stuck here:

21│        (List.walk elem state (\internalState, internalElem ->
                                                                 ^

I just saw a pattern, so I was expecting to see a -> next```

view this post on Zulip Brendan Hansknecht (Dec 07 2023 at 07:28):

Probably the compiler printing a bad error message. Can you share more context of the surrounding function?

view this post on Zulip Wyatt Osterling (Dec 07 2023 at 07:36):

For whatever reason, zulip is giving me a tough time pasting the text (I’m on an iPad using ssh). I went ahead and included a screenshot. 9C10954A-4FF4-4001-9B03-2CD9AAD81EB4.jpg

view this post on Zulip Wyatt Osterling (Dec 07 2023 at 07:40):

For context, this is a very early prototype for D2P1 of AOC. Also thank you for your help earlier!

view this post on Zulip Brendan Hansknecht (Dec 07 2023 at 07:43):

I am having a hard time parsing this manually, but I don't immediately see an issue.

view this post on Zulip Brendan Hansknecht (Dec 07 2023 at 07:44):

If you can manage to get text on zulip later, that would be helpful.

Also, by using more |> operators, you probably can greatly reduce the nesting.

view this post on Zulip Wyatt Osterling (Dec 07 2023 at 08:26):

It started working once I fixed a few typos, so idk what caused it :). I also delt with the nesting.


Last updated: Jul 06 2025 at 12:14 UTC