Trendaavat aiheet
#
Bonk Eco continues to show strength amid $USELESS rally
#
Pump.fun to raise $1B token sale, traders speculating on airdrop
#
Boop.Fun leading the way with a new launchpad on Solana.
Zig makes it really hard to run a virtual function. Which is super annoying at first
You can't just make an interface and then make an implementation trivially like you could in Golang or most other languages
But this is a feature not a bug. You can do virtual functions using comptime. But zig makes it more obvious there are negative tradeoffs to this.
Zig makes writing simpler code that doesn't use virtual functions your default happy path and as a result you end up using interfaces and virtual functions only when doing so is extremely impactful and worth the effort.
It turns out, you almost never need interfaces in a lot of code
I forgot to mention I agree btw. This is more like the silver lining that made it go from “wtf” to “actually it’s an interesting mindset to discourage that abstraction”
Kinda like lack of enums in go or the borrow checker in rust. Or oo languages. I overall don’t like those things but I kinda learned something adopting the language pov perspective
@norswap Btw I realize looking how my post fails to mention that overall I want interfaces.
I’m only talking about the silver lining here but imo interfaces are where zig no hidden control flow goes 1 step too far
809
Johtavat
Rankkaus
Suosikit