News for hackers. Stuff that matters.
Re:Portable Cloud Programming with Go Cloud by paulddraper on Tuesday July 24, 2018 @12:44PM (#17602737)
> unsurprising language

---

This is a valid Go program.

    import "fmt";

    func main() {
        fmt.Println("Hello world")
    }
This is an invalid Go program.

    import "fmt";

    func main() {
        // fmt.Println("Hello world")
    }
Surprising.

---

Creating typed general-use data structures is impossible.

Surprising.

Re:Portable Cloud Programming with Go Cloud by tree_of_item on Tuesday July 24, 2018 @12:47PM (#17602758)
Nope, you have to use imports. It's a little annoying but not "surprising" since the language shoves it in your face right away.
Re:Portable Cloud Programming with Go Cloud by paulddraper on Tuesday July 24, 2018 @12:50PM (#17602786)
You're correct. I was in no way surprised by this language feature, and neither were any of my coworkers.

Go is a thoroughly "unsurprising" language.

Re:Portable Cloud Programming with Go Cloud by erik_seaberg on Tuesday July 24, 2018 @03:41PM (#17604262)
A fatal error that prevents deployment is a lot more surprising than a warning.
Re:Portable Cloud Programming with Go Cloud by bschwindHN on Tuesday July 24, 2018 @08:35PM (#17606064)
You shouldn't even be at the point of attempting a deploy if your code doesn't compile.
Re:Portable Cloud Programming with Go Cloud by 0xdeadbeefbabe on Tuesday July 24, 2018 @01:18PM (#17603085)
Rave about porting cat to go and we'll restore your karma.
Re:Portable Cloud Programming with Go Cloud by paulddraper on Tuesday July 24, 2018 @01:30PM (#17603198)
Maybe I should also blog about how I was able to keep the size increase under 50x.
Re:Portable Cloud Programming with Go Cloud by tapirl on Tuesday July 24, 2018 @01:05PM (#17602944)
neither of your example is a valid Go program.
Re:Portable Cloud Programming with Go Cloud by paulddraper on Tuesday July 24, 2018 @01:29PM (#17603185)
Ha, fair enough ;) Fixed
Re:Portable Cloud Programming with Go Cloud by sagichmal on Tuesday July 24, 2018 @11:19PM (#17606689)
They are both still non-compilable.