Re:Cppfront, Herb Sutter's proposal for a new C++ syntax
by mgraczyk on Saturday September 17, 2022 @04:31PM
(#32881290)
Most new languages use postfix types. I grew up using C and C++, but now that I've learned and use Python with types and Typescript, I'm used to and prefer postfix syntax
[ Parent
| on HN ]
Re:Cppfront, Herb Sutter's proposal for a new C++ syntax
by uwagar on Saturday September 17, 2022 @04:39PM
(#32881355)
shouldnt it then be?
i: int 0 = ;
Re:Cppfront, Herb Sutter's proposal for a new C++ syntax
by mgraczyk on Saturday September 17, 2022 @04:48PM
(#32881435)
No, it should read grammatically as English.
int x = 0 "There is an integer x with value 0"
x: int = 0 "x is an integer with value 0"
x: int 0 = "x is an integer that is zero valued"
The last one is awkward, the first one is harder to read.
Re:Cppfront, Herb Sutter's proposal for a new C++ syntax
by tsimionescu on Sunday September 18, 2022 @02:16AM
(#32884911)
They said postfix types, not postfix syntax.