Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Rob ``Commander'' Pike - Go lang

Name: Anonymous 2014-05-02 12:13

http://www.u.arizona.edu/~rubinson/copyright_violations/Go_To_Considered_Harmful.html
"If you need to go to somewhere, goto is the way to go".

So the new hipster shit taking over now that the ruby is full of sexist rape supportors is Go!

http://www.u.arizona.edu/~rubinson/copyright_violations/Go_To_Considered_Harmful.html
It features a higher level of analness than seen in any programming languages that aren't based on french lambda calculi in particular:

http://www.u.arizona.edu/~rubinson/copyright_violations/Go_To_Considered_Harmful.html

Prepare to get shamed downvoted and patronized for asking how to turn "DECLARED BUT UNUSED VARIABLE" from an error into a warning: http://stackoverflow.com/questions/21743841/how-to-avoid-annoying-error-declared-and-not-used-from-golang

Here's some picks from the go implementation:

doc/go_faq.html:var _ = unused.Item // TODO: Delete before committing!
doc/go_faq.html: _ = debugData // Used only during debugging.
doc/progs/image_draw.go: _ = dirtyRect // noop
doc/progs/go1.go: _, _, _, _ = holiday1, holiday2, holiday3, holiday4
doc/progs/go1.go: _ = ErrSyntax
doc/progs/go1.go: _ = f
doc/progs/eff_unused2.go:var _ = fmt.Printf // For debugging; delete when done.
doc/progs/eff_unused2.go: _ = fd
doc/progs/error.go: _ = f


Despite this fucking ANAL BULLSHIT that even they have to work around, the language still has MOTHERFUCKING GOTO http://www.u.arizona.edu/~rubinson/copyright_violations/Go_To_Considered_Harmful.html

cmd/gc/walk.c comment out lines 67, 71

the follow tests will fail:

# ../test
# go run run.go -- typeswitch2.go
errorcheck typeswitch2.go : typeswitch2.go:43: missing error "declared and not used"
# go run run.go -- fixedbugs/bug373.go
errorcheck fixedbugs/bug373.go : compilation succeeded unexpectedly


You will now be able to program in peace.. unless you have to work on a codebase that has goto in it.

Name: Anonymous 2014-05-02 12:16

GOTO is not bad. Physical computers have GOTO instructions, they don't have IF/THEN/ELSE, SWITCH, WHILE, FOR, etc., those or all a language-level decoration layered on the essential, life-giving GOTO.

Sometimes, when you want to write a program that acts like a computer, for example one that evaluates a state machine, the program that is the "state machine computer" is most naturally expressed with GOTO. There need be no shame for this. It's not a primitive act, or inferior to anything else in the repertoire of the skillful programmer.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List