News for hackers. Stuff that matters.
Re:Why Go is doomed to succeed by klibertp on Saturday June 13, 2015 @07:54PM (#9713226)
What do you mean by "the magic concatenation and auto-conversion of strings"?

Also, having a map implemented in a library is a Good Thing. It means that your language is extensible and expressive enough for this. AFAIK Go is - by design - not that extensible.

Re:Why Go is doomed to succeed by Elrac on Saturday June 13, 2015 @08:31PM (#9713320)
Magic concatenation: the "+" operator is understood by the compiler to be the concatenation operator if either operand is a String. "Magic" in the sense that it's an exceptional affordance made by the language (not the library) for this one data type and operator.

Auto-conversion: "2" + 5 = "25". This looks horribly hackish, like some type buggering perl might do, or js. But it comes in handy when you want to build a message string.

And yes, as the article tells us, a lot of things are very purposely left out of Go, which has advantages and disadvantages like most trade-offs.

Re:Why Go is doomed to succeed by okasaki on Sunday June 14, 2015 @02:18AM (#9713917)
Magic concatenation:

        string hello = "hello";
        string world = "world";
        string hw = hello + ' ' + world;
Auto-conversion:

        stringstream ss;
        ss << "2 + 2 = " << 2 + 2 << endl;
        string result = ss.str();
Re:Why Go is doomed to succeed by Elrac on Sunday June 14, 2015 @04:29AM (#9714204)
1 point for "magic concatenation;" I wasn't aware that works!

"nice try" on "auto-conversion".