- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
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?
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
In either case, such discussion invietably boils down to *who* is full of BS (c) Linus LOL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, I guess the decision is something that can't be reversed now. T'was nice to stick to the standard C++ style.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page