Re:Language Design: Use 'ident: Type' not 'Type ident'
by a1369209993 on Saturday May 02, 2020 @01:55AM
(#23049640)
And Ceiling Cat help you if you try to declare something like:
Kitten neko(Felis<0xCA7>::catus);
where catus may be either a typename or a variable depending which template instantiation you landed on.There's probably some way to say:
Kitten neko(Felis<is_function_type<typeof neko>::value_of>::catus);
Re:Language Design: Use 'ident: Type' not 'Type ident'
by MaxBarraclough on Saturday May 02, 2020 @06:25AM
(#23050813)
Beautifully terrible!
Declare a local named neko of type Kitten, passing a value to its constructor:
Declare a local named neko of type Kitten, without passing a value to its constructor: Declare a function named neko with zero parameters and with return type Kitten: https://en.wikipedia.org/wiki/Most_vexing_parse , https://stackoverflow.com/a/620149/