Hello world/Text: Difference between revisions

Content added Content deleted
Line 2,798: Line 2,798:
<lang raku>say 'Hello world!';</lang>
<lang raku>say 'Hello world!';</lang>
In an object-oriented approach, the string is treated as an object calling its '''say()''' method:
In an object-oriented approach, the string is treated as an object calling its '''say()''' method:
<lang raku>"Hello, World!".say();</lang>
<lang raku>"Hello, World!".say; # note the empty parentheses aren't required</lang>


=={{header|Raven}}==
=={{header|Raven}}==