Re:Language Design: Use 'ident: Type' not 'Type ident'
by earthboundkid on Friday May 01, 2020 @09:58PM
(#23048422)
[ Parent
| on HN ]
Re:Language Design: Use 'ident: Type' not 'Type ident'
by mariodiana on Friday May 01, 2020 @10:18PM
(#23048530)
I think you may be right, &int would be better than int*.
I did not want to stray too far from what C does now, for the sake of argument. I just wanted to say that the ambiguity in C is often because it's so loosey-goosey with whitespace.
Re:Language Design: Use 'ident: Type' not 'Type ident'
by saagarjha on Friday May 01, 2020 @10:06PM
(#23048473)
I’ve had luck with not putting something directly after the asterisk.
Re:Language Design: Use 'ident: Type' not 'Type ident'
by earthboundkid on Saturday May 02, 2020 @12:58PM
(#23053079)
Apparently HN does not have an escape character which seems like a real oversight. :-/