我怎样才能让 Perl6 (MoarVM / Rakudo) 警告所有丢失的分号?

How can I make Perl6 (MoarVM / Rakudo) warn about all missing semicolons?

在 Perl 5 中,最好使用

use strict;
use warnings;

要求编译器抱怨缺少分号、未声明的变量等

Perl 社区的公民在 SO 上告诉我,默认情况下 Perl 6 uses strict,经过测试似乎是这样。

Semicolons aren't required for the last statement in a block,但如果我稍后扩展该块,当我的代码不起作用时我会很懊恼,因为它是同一个块(而且我希望到处都有分号,因为它是一致的和东西)。

我的假设是 Perl 6 甚至 块中最后一个语句的分号,但我仍然很好奇:有没有办法做到这一点更严格了吗?

Rakudo 并没有强制执行额外的 semi-colon,而是试图给你一个很好的 error/hint 如果你确实添加到你的块而忘记分开语句。

发生这种情况时,我通常会得到 "Two terms in a row across lines (missing semicolon or comma?)"。