develooper Front page | perl.perl6.users | Postings from January 2022

probably worth a bug report ?

Thread Next
From:
Marc Chantreux
Date:
January 2, 2022 07:35
Subject:
probably worth a bug report ?
Message ID:
YdFVkpFJnyM3up2L@prometheus.u-strasbg.fr
hello rakoons,

I got this error message

	Too few positionals passed; expected 1 argument but got 0
	  in sub xxx at - line 1
	  in block <unit> at - line 2
	
	Welcome to 𝐑𝐚𝐤𝐮𝐝𝐨™ v2021.09.
	Implementing the 𝐑𝐚𝐤𝐮™ programming language v6.d.
	Built on MoarVM version 2021.09.

by running this:

	<<\-. raku; raku -v
	sub xxx ( Pair $test ) { $test.raku.say }
	xxx key => 'value';

and i think it's worth a bug: i don't know if

	xxx key => 'value'

should parse but at least it deserve a less
confusing message, don't you think ?

regards
marc

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About