You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The difference is because % is an operator (modulo), and so an infix is found, and the next term is also syntactically well-formed (listop function syntax for h and indexing its result). Since a function may be post-declared, then an error is only produced once parsing is done and no h was found.
ab5tract
added
the
LTA
Less Than Awesome; typically an error message that could be better
label
Mar 23, 2024
The Problem
Given a simple hash:
If you're trying to type:
But drop the comma separator, you get an "Undeclared routine" error:
Rather than the expected "Two terms in a row", which
you'll see if you do something similar with an array:
Environment
Operating system:
Debian 5.10.209-2 (2024-01-31) x86_64 GNU/Linux
Compiler version (
rakudo -v
orraku -v
):raku --version
Welcome to Rakudo™ v2023.02.
Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2023.02.
The text was updated successfully, but these errors were encountered: