What is Nostr?
Lapin /
npub1s77…f354
2025-02-23 05:21:47
in reply to nevent1q…mxe3

Lapin on Nostr: Loliphile >Why not do var foo: [608]u8 = undefined; and then @memset(&var, 0); ...

Loliphile (nprofile…c3q2)
>Why not do var foo: [608]u8 = undefined; and then @memset(&var, 0); though?
well what i did is exactly that except it happened at comptime, and it’s only one line, easier to read

>you should most certainly not discard the result
this is true. i did what i did because

the params i set are so correct and/or otherwise common (especially the sample rate) that any error during that part is just very unlikely (i tested it just now in fact)
it’s easier to read those many lines that way

you’re right tho that ideally one should turn them into zig errors instead, but that’s for much later and for now they all just look like these instead lol

Author Public Key
npub1s77zadrsjwsmrmtf566vz374l6v8wgnmhz3npcetjaugjdscvzsq7yf354