Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyYARV bytecodeSingle-choice MCQ

Under the `# frozen_string_literal: true` magic comment, why does a bare string literal compile to `putobject` instead of `putstring`, and what is the runtime consequence at that call site?

# file with: # frozen_string_literal: true 3.times { p "hi".object_id }