3 ms·
Zig isn't 1.0 so I assume more learning materials will come along once the language is actually finished. I am not super familiar with zig, but I would say I a
by 3a2d29 4y ago
Zig isn't 1.0 so I assume more learning materials will come along once the language is actually finished.
I am not super familiar with zig, but I would say I am not a fan of using the entire word "function"
I believe "fn" is used in rust and I think its readable.
Maybe something like Go's "func" is better, but I really feel this is all arbitrary.
- billfruit 4y agoTo my eye 'public function main' is a lot better than 'pub fn main'. It is also lot more clearer when you have to read out code phrases out loud.
- 3a2d29 4y agoIs there any language other than javascript that has the key word as the full "function"? Again its personal preference, but I'm curious if there is a language you use often that makes you like that specifically? Java is a bit like that, but has the C++ data types as its function key word basically. I'm trying to think if I am forgetting one.
- int_19h 4y agoSome examples would be Ada, Lua, Pascal (and derivatives like Delphi), XQuery.