4 ms·
Ah, C not originally having typedefs explains why the syntax wasn't thrown out as too annoying to begin with. Syntax creep I guess. An easy solution to the pro
by TazeTSchnitzel 7y ago
Ah, C not originally having typedefs explains why the syntax wasn't thrown out as too annoying to begin with. Syntax creep I guess.
An easy solution to the problem would be to do what e.g. Haskell does where case-sensitivity determines a type name. For better or worse, C didn't do that.
- lisper 7y agoIn Dylan all types were delimited with <angle_brackets>. Personally I always found that very aesthetically pleasing.
- Riverheart 7y agoSame in Powershell except they use square brackets [string] $foo = "foo"
- zelphirkalt 7y agoIn my brain the instantly translates to "list of strings". Not sure square brackets are such a good choice.