News for hackers. Stuff that matters.
Re:Why Zig when there is already C++, D, and Rust? by rubiquity on Friday January 15, 2021 @07:52PM (#25798754)
I love Zig. Occasionally I wish it had interfaces because that’s how my brain designs software components. You currently achieve the same runtime characteristics of interfaces by using a function property on a struct.

It’s a great language though and a ton of fun. It’s so easy to dive into a codebase quickly which I value as a very distracted dad. The standard lib is a joy to read too.

Re:Why Zig when there is already C++, D, and Rust? by throwaway17_17 on Saturday January 16, 2021 @02:23AM (#25800736)
Can you explain what you mean when use the term interfaces? I’m just curious as to what your describing. Also, do you mean use a function property on a struct in Zig specifically to capture the operation of such an interface?
Re:Why Zig when there is already C++, D, and Rust? by mypalmike on Saturday January 16, 2021 @10:10AM (#25802653)
I assume interfaces refers to runtime polymorphism.