Actions
Bug #19150
closedpack/unpack silently ignores unknown directives
Description
But I believe it should be an error instead.
Typically when a parser sees a syntax error it should fail not continue silently.
For instance [1].pack('<L')
succeeds and only emits a warning if $VERBOSE
is true.
This behavior caused confusion in https://github.com/oracle/truffleruby/issues/2791
I think it should fail with an ArgumentError
instead.
Extracted from https://bugs.ruby-lang.org/issues/19108#note-3
Actions
Like1
Like0Like0Like0Like0Like1Like0Like0