What is Nostr?
mos_8502 :verified: /
npub1qnu…hzwk
2024-05-23 00:54:11
in reply to nevent1q…vd79

mos_8502 :verified: on Nostr: Your criticism is dead on accurate. I’ve made one of my life goals to write C like ...

Your criticism is dead on accurate. I’ve made one of my life goals to write C like someone who actually wants a human being to comprehend it.

I design opaque types that get passed around as pointers with no direct access to member variables, only through a tailored API. I use proper structural return types (result/status tuple structures). I use GC or manual retain release with deinit functions instead of malloc/free wrappers to manage lifetimes. I strive to be an example of what C can be if effort is applied.
Author Public Key
npub1qnufz4pycufk27kkeev5g0fgm0w0tqexsly674s2uwy0tynk5ymsk5hzwk