If you disable GC in D, and end up with something equivalent to Zig, then why not use Zig?
50 karma · joined March 30, 2021
If you disable GC in D, and end up with something equivalent to Zig, then why not use Zig?
func (d CarDB) func Car() (Car, error)
The above tells you everything you need to know. As for usage, again, the type and now also the variable names should let you infer everything you need.
func f(db *CarDB) { c, _ := db.Car() }
The function name makes as little of a guarantee as to the underlying "how" as these other factors.
I can appreciate reducing dependencies, but this is bordering on paranoia.
No one should ever ask themselves "how do I do image positioning" or "how do I add pagination" when dealing with markdown. That's just not what it's good for.
Imagine having to write comments on HN using LaTeX.
I highly, highly, highly doubt that.
Considering how static phones honestly are after initial setup, when you've installed the apps you need and configured the few things you need configuring, you never touch anything that's not an app.
It's sad how many "web apps" (and even more regular sites) only work in Chrome - try using Firefox or any non major browser, and quite a lot of the web simply doesn't work.
I've been getting into Go for the past couple of months, but I still struggle with this.