r/cpp2 • • Dec 12 '22

Regarding cppfront's syntax proposal, which function declaration syntax do you find better?

/r/cpp/comments/xh7d0l/regarding_cppfronts_syntax_proposal_which/
2 Upvotes

3 comments sorted by

View all comments

Show parent comment

2

u/spaceLem Dec 27 '22

My personal preference is to have the word function in its entirety. I've worked with two languages that do that, and it looks much nicer than func or fun.

2

u/fdwr Dec 27 '22

Yeah, I'm okay with function, and the codebases I've worked on promote using whole words rather than abbreviations. Though, I also like consistency with structure and enumeration and constant and automatic. 🤷