| ▲ | AlienRobot an hour ago | |||||||
With Zig, I can just import SDL.h and use it without writing a binding. Can I do that in C3 or Odin? | ||||||||
| ▲ | pyrolistical 44 minutes ago | parent | next [-] | |||||||
And then you can get AI do a nicer port of SDL.zig and you get way better decls. Proper enums, proper tagged unions, and often reading the docs can allow the AI to distinguish T * to one of 1. [*]T 2. [:0]T 3. ?T 4. *T And these are just the most common ones. If you know it’s a read only pointer/array then you can add the const modifier | ||||||||
| ▲ | flumpcakes an hour ago | parent | prev [-] | |||||||
Odin has SDL built into the language (shipped as a vendored library). | ||||||||
| ||||||||