Why is phobos so wack?

Anonymouse via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 9 06:17:23 PDT 2017


On Sunday, 9 July 2017 at 12:56:55 UTC, FoxyBrown wrote:
> [...]

Your example is incomplete but this literally works for me.

import std.stdio;
import std.string;

void main()
{
     string[] words = [ "hello", "world", "!" ];
     writeln(words.join(" "));
}

You probably passed a string instead of a string[].

> Virtually every other programming language just works as 
> expected. You can pretty much just jump in there and pretty 
> much guess at the function name, the arguments, and it will 
> work.

In my experience this simply isn't true. Error messages could be 
worlds better but no language lets you use it for more than toy 
purposes without ever having to look at some form of 
documentation.


More information about the Digitalmars-d mailing list