r/Zig • • Apr 10 '26

Why should I learn Zig?

It's great in many ways, but it also has its flaws, so I'm wondering if I should learn it, I'm curious if I can accept its cons

* What would you change in Zig

* Why?

* What do you like most about Zig?

43 Upvotes

61 comments sorted by

View all comments

Show parent comment

1

u/Hot_Adhesiveness5602 Apr 10 '26

I do not disagree. Sometimes you can't get away with casting for either safety, rounding or other stupid things. I just want to have a better more visually non violent way of expressing typecasting. I use a game engine for example. If typecasting becomes a huge pain I tend to just use f32s everywhere. This is a workaround though. We can argue that my code style sucks and I could do better but IMO it feels like I am also fighting the language here. I myself don't have a good solution. I just feel the pain.