Remix.run Logo
messe 3 hours ago

> even Zig has methods and interfaces

Zig doesn't have interfaces as a language level feature. It uses manually implemented vtables and wrapper methods.

You can do the same in Odin with wrapper functions around a vtable.

leecommamichael 3 hours ago | parent [-]

There's even syntax-sugar for it in Odin with the `->` operator.

messe 2 hours ago | parent [-]

Oh, nice. I have to admit I'm not all that familiar with Odin, because I've been all-in on Zig for a long time. I've been meaning to try out a game dev project in Odin for a while though, but haven't had the time.