hsutter / cppfront

A personal experimental C++ Syntax 2 -> Syntax 1 compiler
Other
5.24k stars 224 forks source link

[SUGGESTION] Make = in declaration optional when the RHS is a block #1032

Open jsphadetula opened 3 months ago

jsphadetula commented 3 months ago
main: () -> int = {
}

could be

main: () -> int  {
}

This will align Cpp2 with C++ for most declarations

Will your feature suggestion eliminate X% of security vulnerabilities of a given kind in current C++ code? No

Will your feature suggestion automate or eliminate X% of current C++ guidance literature? No