Hello, World!

Anonymous im.anonymous at some.mail
Mon Mar 28 20:44:49 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;
> ```
##### I'll try another
2 line version
```d
import std.stdio;
void main() { "Hello World".writeln; } // Or "puts"
```


More information about the Digitalmars-d mailing list