Discuss Scratch
- ChocolatePi
- Scratcher
1000+ posts
Go
*snort* Well, yeah, it was made by Google.
(GAS isn't related though)
- Firedrake969
- Scratcher
1000+ posts
Go
Regarding which line?
Lied, you can use Go in GAS. Oops.
Lied, you can use Go in GAS. Oops.
Last edited by Firedrake969 (Dec. 15, 2015 00:19:12)
- Firedrake969
- Scratcher
1000+ posts
Go
Doesn't look like it. Languages are definitely independent from programming styles (except Python) xD
Last edited by Firedrake969 (Dec. 15, 2015 00:27:52)
- Jonathan50
- Scratcher
1000+ posts
Go
No. Just because some languages are doesn't mean that it's impossible to design a programming language that isn't. Doesn't look like it. Languages are definitely independent from programming styles (except Python) xD
And haven't you wondered why Google doesn't have a Go style guide?
btw Python is
- Firedrake969
- Scratcher
1000+ posts
Go
“No” what? lol
So many pronoun references to seemingly absent nouns…
Google doesn't have a Go style guide because the Go style guide is here.
So many pronoun references to seemingly absent nouns…
Google doesn't have a Go style guide because the Go style guide is here.
- Jonathan50
- Scratcher
1000+ posts
Go
That's not exactly a style guide. “No” what? lol
So many pronoun references to seemingly absent nouns…
Google doesn't have a Go style guide because the Go style guide is here.
Go forces certain styles, eg:
One consequence of the semicolon insertion rules is that you cannot put the opening brace of a control structure (if, for, switch, or select) on the next line. If you do, a semicolon will be inserted before the brace, which could cause unwanted effects. Write them like thisnot that Go is bad, I haven't tried it…not like thisif i < f() { g() }if i < f() // wrong! { // wrong! g() }
- Firedrake969
- Scratcher
1000+ posts
Go
Thanks for your insights on something you haven't even tried, then
also check out gofmt
also check out gofmt
- MegaApuTurkUltra
- Scratcher
1000+ posts
Go
Please read what I wrote again thanksI know that, I'm simply telling MATU that using Go isn't an excuse for writing bad code…So then write good Go code. Use whatever tool you want as long as it meets your needs.pun intendedpls no @ChocolatePi's comment which I'll assume was meant to GO here
https://scratch.mit.edu/discuss/post/1666130/
My response: Go is C++ for those who would rather not spend hours figuring out what the heck is causing a segfault 0.01% of the time they run their code.
just debug it and write good codegood programming practices are for…^^^ …which is what
- Jonathan50_test
- Scratcher
10 posts
Go
I saw that, I was just explaining to @Firedrake969Please read I know that, I'm simply telling MATU that using Go isn't an excuse for writing bad code…what I wrote again thanks
- DifferentDance8
- Scratcher
1000+ posts
Go
this article explains the different reasons why Go isn't a great language
- ajskateboarder
- Scratcher
1000+ posts
Go
this article explains the different reasons why Go isn't a great languageNice bump
It's a good language for the most part. I just don't like the way you handle exceptions:
res, err := RunFunction() if err != nil { panic(err) }
- bigspeedfpv
- Scratcher
500+ posts
Go
this article explains the different reasons why Go isn't a great languageholy mother of necroposts.
have you ever used go?
i'm assuming not
did you read the whole article?
also assuming not
the whole thing is just complaining that there's not much abstraction in the file library (good, the language was designed to be minimal)
the last part of the article is complaining that packages depend on more packages. interesting, seeing as how they constantly compare go to rust, whose compile time grows exponentially with the number of packages added lol
this article basically says “go is supposed to be simple but my code is long why ”
…except they don't realize a “simple” language doesn't mean short code, it means a language that does everything the same way… which is what the article shows
i'd be interested to hear *your* thoughts specifically on why go is bad
- mybearworld
- Scratcher
1000+ posts
Go
package main import ( "fmt" "os" "scratch/forums" ) func main() { err := bump() if err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } } func bump() error { topic, err := forums.GetTopic(169982) if err != nil { return err } err = topic.Bump() if err != nil { return err } }
Last edited by mybearworld (Sept. 30, 2024 05:16:12)
- Jonathan50
- Scratcher
1000+ posts
Go
Man, forcing me to read my excessively attituded posts from 9 years ago...
On a serious note, I'd be interested if Go is still as relevant now, or perhaps moreso
Last edited by Jonathan50 (Sept. 30, 2024 07:52:22)