Stream: bugs

Topic: Confusing error message


view this post on Zulip drew (Oct 22 2025 at 15:32):

Hi folks! In preparation for aoc 2025, I was trying out day 1 of 2024 in roc. I was splitting a list into the first elements and second elements and i named my variables as and bs. Turns out as must be a reserved word -- my error message was very confusing. It simple said "indention incorrect". I can try to reproduce if useful

view this post on Zulip drew (Oct 22 2025 at 15:34):

https://gist.github.com/drewolson/a87ef1fc672dc813bc41b37246b66ee4

view this post on Zulip Anton (Oct 22 2025 at 15:58):

Hi @drew :)
We are going to attempt to get the new compiler (written in zig) ready in time for advent of code. I just tried the as = with the new compiler and it does not throw an error. as = ... is not something that would make sense with the keyword and I think the new compiler is smart enough to know that. So we're probably not going to fix this in the old compiler.


Last updated: Nov 08 2025 at 12:13 UTC