Readit News logoReadit News
davidkunz commented on Zig Error Patterns   glfmn.io/posts/zig-error-... · Posted by u/Bogdanp
davidkunz · 23 days ago
A little bit unrelated, but how do people deal with the abstinence of payloads in zig errors? For example, when parsing a JSON string, the error `UnexpectedToken` is not very helpful. Are libraries typically designed to accept an optional input to store potential errors?
davidkunz · 23 days ago
Thank you all for these great and detailed explanations, I've learned a lot! I like the approach with an optional pointer, it fits to zig's philosophy quite well. Although there's a bit of a disconnect between the unadorned error and the corresponding data struct. I could imagine it requires care when the data struct is a union, as one needs to know which error corresponds to which variant.
davidkunz commented on Zig Error Patterns   glfmn.io/posts/zig-error-... · Posted by u/Bogdanp
davidkunz · 23 days ago
A little bit unrelated, but how do people deal with the abstinence of payloads in zig errors? For example, when parsing a JSON string, the error `UnexpectedToken` is not very helpful. Are libraries typically designed to accept an optional input to store potential errors?
davidkunz commented on Zig's New Async I/O   kristoff.it/blog/zig-new-... · Posted by u/afirium
davidkunz · 2 months ago
I'm a bit concerned when library authors only test it with blocking Io and the consuming app with a different kind. Wouldn't this potentially lead to bugs?
davidkunz commented on AST-Grep [video]   youtube.com/watch?v=HnlqP... · Posted by u/davidkunz
herrington_d · 3 months ago
Hi, ast-grep author here. thanks for sharing the video!

production quality is amazing! I also did some youtube video recently. It is not easy and end product is far from polished.

Really appreciate your help introducing the tool to more people, thanks!

davidkunz · 3 months ago
Thank you! I found ast-grep to be really useful, I hope more people will discover it!
davidkunz commented on OpenAI o3 and o4-mini   openai.com/index/introduc... · Posted by u/maheshrijal
davidkunz · 4 months ago
I wish companies would adhere to a consistent naming scheme, like <name>-<params>-<cut-off-month>.

u/davidkunz

KarmaCake day1181January 10, 2021
About
DevOnDuty: https://www.youtube.com/@devonduty

GitHub: https://github.com/David-Kunz

View Original