Also I find Zig's choice to use abbreviated keywords rather cryptic, for example using 'fn' instead of 'function' only hurts readability I think.
Also I find Zig's choice to use abbreviated keywords rather cryptic, for example using 'fn' instead of 'function' only hurts readability I think.
I don't get the problem with `fn`, though. Pretty much every language uses abbreviations like that and I've never heard anyone complain about it: enum, char, int, uint, def, ...you get used to it quickly, you need to build a mental model for them either way.
If that's not the case (or maybe plans changed?) I stand corrected. It's definitely not my intention to spread BS.
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.
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.
Larry Wall, its designer, explicitely choose short words for common keywords.
And if you go digging, I think you can still find solutions for last year’s advent of code.