Join Nostr
2026-09-30 20:31:15 UTC
in reply to

solo on Nostr: (talking about header files in C++) > As opposed to Java classes, C++ allows to have ...

(talking about header files in C++)

> As opposed to Java classes, C++ allows to have class declarations that do not include the definition of the functions it encapsulates.
> This enables the possibility to separate the class declaration from its implementation code, which provides the implementation of the member functions of a class.

I mean.. I *guess* it provides that possibility?
you can do this in java already with an interface though...

but like.. the main reason header files exist is because they come from a time when computers weren't powerful enough to be able to hold everything in memory and do multiple passes during the compilation process. they weren't really added for the *purpose*