Audrey Tang audreyt-at-audreyt.org |Perl 6| wrote: > > I guess the wording in the last parenthesized parens is insufficiently > explicit, and maybe we should change it to say that it's really a syntax > error to use placeholder blocks in statement positions. Sounds reasonable? > > Cheers, > Audrey > Looks like it's already been processed, but I agree. If you have a block that is not executed immediatly and is not being assigned to anything either, that is always a compile-time warning. If your variables are typed and you get a Code where you expected a result, that would be a compile-time error since it knows the types never match.
And finally, the case of making a block "not bare" by using placeholders, but not be used in a situation where they could be bound to anything and then called (including the subsequent examples of suffix loop statement modifiers) should be an error. So saying it is wrong in statement position is not accurate, since there could be loop suffixes. --John