Skip to content

Instantly share code, notes, and snippets.

@giljr
Created October 27, 2025 12:21
Show Gist options
  • Select an option

  • Save giljr/ef65a5b4640170c5c4d474f18025cbfb to your computer and use it in GitHub Desktop.

Select an option

Save giljr/ef65a5b4640170c5c4d474f18025cbfb to your computer and use it in GitHub Desktop.
Aspect Benefit Possible Drawback
Memory use Fewer objects None significant
Performance Faster for literal-heavy code Slower if code needs to mutate
Code safety Prevents accidental mutation Breaks mutation-based logic
Compatibility Works fine in modern code May break older gems
Predictability Immutable by default Surprising when global, invisible switch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment