Skip to content

ResumableParser: accept only keyword arguments#1032

Merged
byroot merged 1 commit into
ruby:masterfrom
byroot:resumable-keyword-arguments
Jun 19, 2026
Merged

ResumableParser: accept only keyword arguments#1032
byroot merged 1 commit into
ruby:masterfrom
byroot:resumable-keyword-arguments

Conversation

@byroot

@byroot byroot commented Jun 19, 2026

Copy link
Copy Markdown
Member

Fix: #1016 (comment)

json takes option hashes across the board, mostly because its API predates the introduction of keyword arguments.

I'd like to change that to only take keyword arguments and error when an unknown argument is passed, but I'm not yet sure of the backward compatibility consequences, so it might wait for the next major.

But in the meantime, ResumableParser being a new API, it can safely use keyword arguments.

FYI: @mame

Fix: ruby#1016 (comment)

`json` takes option hashes across the board, mostly because its API
predates the introduction of keyword arguments.

I'd like to change that to only take keyword arguments and error
when an unknown argument is passed, but I'm not yet sure of the
backward compatibility consequences, so it might wait for the next
major.

But in the meantime, `ResumableParser` being a new API, it can
safely use keyword arguments.
@byroot byroot merged commit f08c663 into ruby:master Jun 19, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant