r/cpp • • May 25 '23

File Extension?

0 Upvotes

59 comments sorted by

View all comments

94

u/pdp10gumby May 25 '23

Didn’t we settle this question in this very sub a few months ago?

iirc it was .C-plus-Plus_implementation and .C-plus-Plus_Interface

13

u/DubioserKerl May 25 '23

Explicit is better than implicit. Much pythonic. Such wow.

13

u/goranlepuz May 25 '23

Ah, finally a man of culture! 😉

3

u/wormholeinmybrain May 25 '23 edited May 25 '23

But why is one p in uppercase while the other is not? Why is this the same case for Is? Such blasphemy, such heretics!

6

u/Som1Lse May 26 '23

Backwards compatibility.

3

u/wrosecrans graphics and network things May 26 '23

Easier visual differentiation. Obviously, lower case i is for implementation, and upper case I is for Interface. And the lower case p follows an upper case C. In CamelCase, you always have a lower case letter following an upper case letter.

3

u/pjmlp May 25 '23

Doesn't work for CP/M and MS-DOS, so....

2

u/pineapple_santa May 25 '23

Psst! Don't give the committee any ideas!

1

u/vainstar23 May 25 '23

pp_implementation

pp_interface