RSSAmplifier

soc.me · Jun 8, 2025

Language Design: Multi-Color Number Literals

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

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: Do:

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

Read on /languages/multicolor-number-literals.html

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.