News for hackers. Stuff that matters.
Re:How safe is Zig? by pron on Thursday June 23, 2022 @02:13PM (#31853053)
Not as it is (it would require mutating the type's "state"), but hypothetically, comptime could be made to support even more programmable types. But could doesn't mean should. Zig values language simplicity and explicitness above many other things.
Re:How safe is Zig? by lmh on Thursday June 23, 2022 @07:52PM (#31856485)
Thanks, that's informative. This was meant to clarify the bounds of Zig's design rather than as a research proposal. Otherwise, one might read it as an open invitation to just the sort of demonic meta-thinking that its users abhor.