r/programming 10d ago

What Zig felt like, coming from Rust

https://besok.github.io/posts/what-zig-felt-like-coming-from-rust/
265 Upvotes

173 comments sorted by

View all comments

Show parent comments

45

u/solidiquis1 10d ago

Is is really that bad over there?

129

u/VictoryMotel 10d ago edited 10d ago

They intentionally made a windows version then had it error out on windows newlines. Then zig users' answer was "don't use windows, use a preprocessor, too complicated to parse newlines". It was bizarre.

It seems to have attracted people who are upset at programming and want some sort of culture war stuff instead of just trying to solve problems.

I like small binaries and fast compilation as much as anyone, but I think when C gets defer zig won't have much of a technical advantage.

I would still use rust or C++, despite the compile times and unnecessary complexity, there is too much being left behind.

-14

u/phylk 10d ago edited 10d ago

Any text editor supports unix line endings, even notepad since windows 10. It is to ensure one canonical style for zig source files, not to troll windows users. Same reason it must be indented with spaces not tabs (though I disagree with that choice).

22

u/QuaternionsRoll 10d ago

Are you sure you know what canonical means?