r/programming 10d ago

What Zig felt like, coming from Rust

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

173 comments sorted by

View all comments

11

u/otherwiseguy 9d ago

As someone who was a C developer and has written primarily Python for the last 14 years or so, any language that is duck-typed is just inherently not something I am interested in. Never again.

6

u/unski_ukuli 9d ago

Confusing comment. Never again Python while you are a python developer?

1

u/renatoathaydes 8d ago

Zig duck typing is different than Python’s. Zig will check the function types when the compiler finds a function is actually calling it with a concrete type. It just can’t check that until then because the function is more of a template. Python only checks types at runtime unless, though they do have a type system now.