Why frozen string literals ?
What is reason. It seems it makes coding more difficult.
I often do something like …
puts 'Value is: '<<value.inspect
But if the file has this magic comment at the top …
# frozen_string_literal: true
… this can produce frozen string errors.
The restrictions that frozen string literals impose (to me) have the flavor of the hoops we had to jump through with Strings in the Ada programming language. (Perhaps one of the reasons it was abandoned by the DoD as the required language for defense projects.)