打印

Perl 6小瞥之1 -- 注释

Perl 6小瞥之1 -- 注释

注释等同于空白(whitespace).

Perl 6增加了内嵌的注释(embedded comments)。
\'#\'后跟一对brackets,但是以\'#\'开头的行将被认为是行注释,无论它后面跟的是什么。

e.g.
say #( I\'m a comment ) \"howdy world\"
say #[ I am another comment] \"howdy world\"
say #[[ I am, too]] \"howdy world\"
--
Some computer language designers seem to think that punctuation is evil; I
doubt their English teachers would agree.
                                                            ---- Larry Wall
每一天都在努力

TOP

先學習了.

TOP


感谢一直以来您对我们的支持!
当前时区 GMT+8, 现在时间是 2008-10-8 16:20 京ICP证060528 号

Designed By 17DST