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.