You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

Place const as the rightmost declaration specifier when declaring constants. Although placing const to the right of the type specifier in declarations conflicts with conventional usage, it is less likely to result in common errors and should be the preferred approach.

Non-Compliant Code Example


Unable to render {include} The included page could not be found.

Compliant Solution

Unable to render {include} The included page could not be found.

Exceptions

Placing const to the left of the type name may be appropriate to preserve consistency with existing code.

References

  • No labels