Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The concept of β€œinterfaces” in zig is a comptime pattern rather than a language construct. See std.io.SeekableStream.

To check that an anytype meets the decls of SeekableStream is rudimentary.

It’s funny that you say that about html, as a project in the discord was just released to get comptime html only in the last few weeks. I don’t remember the project name unfortunately.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: