| 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 |
Created
October 27, 2025 12:21
-
-
Save giljr/ef65a5b4640170c5c4d474f18025cbfb to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment