News for hackers. Stuff that matters.
Re:Go Rocks - How Can We Avoid Something This Bad In The Fut... by koenigdavidmj on Monday July 11, 2011 @12:48AM (#2749534)
> Go only allows named global functions, and lacks a feature that Pascal had.

    func main() {
    	bar := func() {
    		fmt.Println("Hello, δΈ–η•Œ")
    	}
    	bar()
    }
What do I lose by doing that versus having 'func bar()'?
Re:Go Rocks - How Can We Avoid Something This Bad In The Fut... by a_strange_guy on Monday July 11, 2011 @08:29PM (#2753057)
this:

    func global(some_arg_to_close_over Bar) {
    	func walk_tree(node Node) {
            ...
            walk_tree(left(node))
            walk_tree(right(node))
    	}
    	walk_tree(something)
    }