doc icon indicating copy to clipboard operation
doc copied to clipboard

What is a scoped block

Open JJ opened this issue 3 years ago • 1 comments

Problem or new feature

If you write something like this:

use experimental :macros;
macro foo() { quasi "bar" }

You get:

Missing block
at /home/jmerelo/Code/raku/my-raku-examples/scoped-block-fail.raku:2
------> macro foo() { quasi⏏ "bar" }
    expecting any of:
        scoped block

Suggestions

No reference to "scoped block" is found anywhere in the documentation. Try and find out what it is.

JJ avatar Jun 05 '22 10:06 JJ

Per this line of code, a "scoped block" is, syntactically speaking, a code block (cf the type Block and code of the form { ... }).

That said, see also point 4 in my comment discussing this matter in #4080.

raiph avatar Jun 05 '22 22:06 raiph