Comment (computer programming): Difference between revisions

Content deleted Content added
Examples: Merge perl into scripting section
Raku: Add Raku to scription section
Line 402:
</syntaxhighlight>
 
====Block in Raku====
[[Raku (programming language)|Raku]] (previously called Perl 6) uses the same line comments and POD Documentation comments as regular [[Perl]] (see Perl section above), but adds a configurable block comment type: "multi-line / embedded comments".<ref name=perl6>
{{cite web
| title = Perl 6 Documentation – Syntax (Comments)
| url = https://docs.perl6.org/language/syntax#Comments|access-date=2017-04-06
}}
</ref> It starts with <code>#`</code> and then an opening bracket character and ends with the matching closing bracket character.<ref name=perl6 /> For example:
</ref>
 
These start with a hash character, followed by a backtick, and then some opening bracketing character, and end with the matching closing bracketing character.<ref name=perl6 /> The content can not only span multiple lines, but can also be embedded inline.
<syntaxhighlight lang="perl6">
#`{{ "commenting out" this version
Line 425 ⟶ 424:
}
</syntaxhighlight>
 
 
====Block in Python====