Re: [dev] [general][discussion] constants: `#define` or `static const`

From: Kamil Cholewiński <harry666t_AT_gmail.com>
Date: Thu, 12 Oct 2017 19:58:57 +0200

Hi Matthew,

I'd go with "static const" unless you have a reason to do otherwise. As
you pointed out: type checking, scope, etc. but also: you can't take the
address of a #define and pass it around as a pointer.

Ultimately it boils down to style. Use whatever you think best
communicates the *intent*.

<3,K.
Received on Thu Oct 12 2017 - 19:58:57 CEST

This archive was generated by hypermail 2.3.0 : Thu Oct 12 2017 - 20:00:17 CEST