Guten Tag Robert Middleton,
am Sonntag, 7. November 2021 um 17:36 schrieben Sie:

> I don't see any advantage to this over a macro, unless you were
> thinking of something else?

That's exactly what I meant and the benefits I see are simply avoiding
a macro and having something documented for the class as part of its
(private) API. With having that method abstract, one can even force
it's implementation in subclasses, resulting in a more uniform access
to the data across the code base etc.

That's different with a macro, which might result in bad error
messages during compilation, might be named differently across
classes, might not be available because devs missed it etc.

Though, it's a matter of taste most likely.

Mit freundlichen Grüßen

Thorsten Schöning

-- 
AM-SoFT IT-Service - Bitstore Hameln GmbH
Mitglied der Bitstore Gruppe - Ihr Full-Service-Dienstleister für IT und TK

E-Mail: [email protected]
Web:    http://www.AM-SoFT.de/

Tel:   05151-  9468- 0
Tel:   05151-  9468-55
Fax:   05151-  9468-88
Mobil:  0178-8 9468-04

AM-SoFT IT-Service - Bitstore Hameln GmbH, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 221853 - Geschäftsführer: Janine Galonska




Reply via email to