Language Design: Multi-Color Number Literals

Published on 2025-06-08.

TLDR: Use multiple colors to make the various components of your number literals easily distinguishable.

Different colors for:

  • base prefix
  • type suffix
  • float exponent
  • digits value

Instead of:

image-before

Do:

image-after