Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8015

C/C++ • Re: camel vs snake naming

$
0
0
my names to be distinct
Use namespaces which keep 'your' names separate from 'other' names.
https://en.cppreference.com/w/cpp/langu ... space.html
^^this.

All the library code I've ever written is in namespace "sd" and every app I've written is in namespace "app". If an app pulls in enough libraries you'll see every convention out there. I do my thing in "sd". I suggest you do similar: whatever helps the thought process. It used to be trivial to make "sd" work with another convention, a modern compiler will optimise that out for the sake of header into working code, rather than trying to write something using a convention which jars the mind.

Statistics: Posted by swampdog — Sun Jun 15, 2025 12:35 am



Viewing all articles
Browse latest Browse all 8015

Trending Articles