no python? how are normie programmers like me supposed to relate to this?
Python: You send someone else to rescue the princess on your behalf. That someone else is the C knight.
You have python. You import antigravity. The princess flies off into space. You monkey patch the princess so she has wings.
And this is how I learned about the antigravity module. Pretty cool!
Rust:
Cannot move princess out of
castle
which is behind a shared referenceYou can’t rescue the princess, but you can borrow her.
It will also complain that trying to break into the castle is unsafe, so you have to tell it that you know.
That just means you designed your castle unsafely.
I’m going to have to print out the Go version for all future “it’s idiomatic” and “but the community!” debates at work
I’m curious about this but I’m barely a programmer now, so if anyone is up to explain
The go community is strongly opinionated in unique ways. For example, using libraries is generally frowned upon. You either use something included in the language itself (standard library) or copy/paste the code you wrote in another project. There’s also advocacy for shorter variable names which generally seems counter to the normal “write descriptive variable name” mantra.
All in all, I hope the ideas / opinions came from a good place and then some people took them as black & white rules. But they also come off as one or two people’s pet peeves who got to build a language around them.