Hacker News new | ask | show | jobs
by Cloudef 401 days ago
I think files as struct makes lots of sense. As it doesnt have to treat files in any special way then.
1 comments

i had been dreaming about files as structs for about a two decades and Zig made it happen.

i will say the struct files (files which are not a namespace struct.. that is, they have field values) are a bit weird, but at least the syntax is consistent with an implicit surrounding bracket.