Hello, World!
Petar
Petar
Tue Mar 29 09:36:20 UTC 2022
On Monday, 28 March 2022 at 05:23:22 UTC, FeepingCreature wrote:
> On Saturday, 26 March 2022 at 04:03:08 UTC, Salih Dincer wrote:
>> Thank you...
>>
>> I think this is a work of art. Just like the banana work that
>> was attached to the wall with duct tape, which Italian
>> sculptor Maurizio Cattelan called "Comedy".
>>
>> Also, the end-of-line character is needed. In this way, there
>> is the same number of characters as the line above. But I like
>> this more:
>>
>> ```d
>> void main()
>> {
>> import std.stdio : writefln;
>> "Hello".writefln!"%s, World!";
>> }
>> ```
>>
>> Because it's functional...
>>
>> SDB at 79
>
> Throwing my hat in the ring:
>
> ```d
> import std.stdio;
> int main()
> => "Hello World".puts;
> ```
```d
void main() => imported!`std`.writeln("Hello World");
```
:P
More information about the Digitalmars-d
mailing list