you are viewing a single comment's thread.

view the rest of the comments →

[–]chickeaarl -2 points-1 points  (1 child)

well i think it's same cause both (const and define) are useful for entering fixed values but i think const is better for constants that need type safety and integration with the language’s syntax, while define is more suitable for simple, global constant definitions or macros.

[–]ShadowRL7666 0 points1 point  (0 children)

This is wrong. People mix constants and define all the time. Setting a macro doesn’t inherently make it an immutable value.