Page MenuHomeDevCentral

Declare string literal as frozen
ClosedPublic

Authored by dereckson on Sep 21 2018, 15:37.
Tags
None
Referenced Files
F3912580: D1787.diff
Thu, Dec 19, 06:16
Unknown Object (File)
Sun, Dec 15, 22:33
Unknown Object (File)
Fri, Dec 13, 22:39
Unknown Object (File)
Wed, Dec 11, 09:15
Unknown Object (File)
Sun, Dec 8, 17:49
Unknown Object (File)
Fri, Dec 6, 00:33
Unknown Object (File)
Wed, Dec 4, 18:36
Unknown Object (File)
Wed, Dec 4, 18:36
Subscribers
None

Details

Summary

Ruby 3 will use frozen string litteral by default.

As Tommy strings are immutable, we can already switch to this behavior.

References:

Test Plan

Run server

Diff Detail

Repository
rTOMMY Tommy
Lint
Lint Not Applicable
Unit
Tests Not Applicable