2 ms·
> Order-independent top level declarations. Javascript has had this for functions since 1995. This has been part of zig from the start, not added later. > Fi
by throwawaymaths 2y ago
> Order-independent top level declarations.
Javascript has had this for functions since 1995. This has been part of zig from the start, not added later.
> Fixed sizes for ints, longs, etc.
this has existed in stdint.h since C99. It doesn't take a genius, only years of pain with C/C++, to realize this is the better way to do things. And also, this was in zig from the start, not added later.
> Underscores embedded in integer literals
Also in zig from the start, not added later. Others have commented on the provenance.
I could be convinced that continue/break to labels was inspired by D.