Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Nav
New Contributor I
42 Views

TBB syntax style

Jump to solution
Is there a reason for the syntax style of TBB being like "allocate_additional_child_of" instead of "allocateAdditionalChildOf" ?

I personally feel that the use of underscores is old-fashioned. Although it gives good readability, it's a pain to reach out for the underscore key everytime.

So, back to the question - was there a reason for keeping the underscores?
0 Kudos
1 Solution
Alexey_K_Intel3
Employee
42 Views
TBB started from PascalStyle but then therewas a deliberate decision at some early days to use underscores similarly to the C++ standard and STL. Possibly it was even based on early feedback, I don't remember now.

View solution in original post

3 Replies
Dmitry_Vyukov
Valued Contributor I
42 Views
I guess cause it's official C++ naming convention. So there is at least one objective reason to use under_score, and no reasons to use Pascal or caMel.

In either case, such discussion invietably boils down to *who* is full of BS (c) Linus LOL
Alexey_K_Intel3
Employee
43 Views
TBB started from PascalStyle but then therewas a deliberate decision at some early days to use underscores similarly to the C++ standard and STL. Possibly it was even based on early feedback, I don't remember now.

View solution in original post

Nav
New Contributor I
42 Views
Well, I guess the decision is something that can't be reversed now. T'was nice to stick to the standard C++ style.
Reply