The best replacement for const is define.


The best alternatives to const are rated as following:
★★★★★  define
★★★★  readonly
★★★★  static
★★  static readonly
★★  define php
★★  final
★  define c++
★  final java
★  static c++
★  constexpr
★  enum
★  readonly c#
★  volatile
★  const
★  static php
★  static const
★  static c#
  var javascript
  dim
  define objective-c
  readonly in c#
  const static

Your alternative for const is not listed? Suggest!
Speaking about const, one probably shouldn't forget about typedef.

Other search terms related to const and their ratings are:

★★★★★ typedef
You have in mind a companion for const and it is not yet here? Propose!



Google Trends

Scale is based on the average worldwide traffic of const in all years. Click on graph for more.
const
define
readonly