Re:Language Design: Use 'ident: Type' not 'Type ident'
by lisper on Friday May 01, 2020 @05:23PM
(#23046659)
In Dylan all types were delimited with <angle_brackets>. Personally I always found that very aesthetically pleasing.
Re:Language Design: Use 'ident: Type' not 'Type ident'
by Riverheart on Friday May 01, 2020 @11:47PM
(#23048975)
Same in Powershell except they use square brackets
[string] $foo = "foo"
Re:Language Design: Use 'ident: Type' not 'Type ident'
by zelphirkalt on Saturday May 02, 2020 @05:02AM
(#23050446)
In my brain the instantly translates to "list of strings". Not sure square brackets are such a good choice.
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.