News for hackers. Stuff that matters.
Re:Show HN: Zig-DbC – A design by contract library for Zig by ivanjermakov on Friday August 15, 2025 @08:24PM (#44918786)
Re:Show HN: Zig-DbC – A design by contract library for Zig by habedi0 on Saturday August 16, 2025 @02:59AM (#44920923)
I think they want to add lambdas to Zig at some point. The number of changes is high between releases.
Re:Show HN: Zig-DbC – A design by contract library for Zig by Defletter on Saturday August 16, 2025 @05:29AM (#44921717)
Unless something has changed from this (https://github.com/ziglang/zig/issues/1717#issuecomment-1627...), that is unlikely. The irony is that Zig's new async/await strategy is to use event loops with passed-in functions (https://www.youtube.com/watch?v=x3hOiOcbgeA&t=3643s).
Re:Show HN: Zig-DbC – A design by contract library for Zig by habedi0 on Saturday August 16, 2025 @05:43AM (#44921794)
That's kinda weird and sad. Lambdas are very useful TBH.
Re:Show HN: Zig-DbC – A design by contract library for Zig by Defletter on Saturday August 16, 2025 @06:22AM (#44921956)
Wouldn't surprise me whatsoever if someone creates zigplus, which is just some TypeScript-style superset that adds lambdas and interfaces to Zig as syntax sugar.