Skip to content

Conversation

@sferik
Copy link
Contributor

@sferik sferik commented Jan 19, 2026

Add mutations that replace collection-returning expressions with empty values.

  • to_a/to_ary calls mutate to empty array
  • to_h/to_hash calls mutate to empty hash
  • to_s/to_str calls mutate to empty string
  • String literals mutate to empty string

@sferik sferik force-pushed the empty_collection branch 2 times, most recently from 43734ae to f1f695a Compare January 19, 2026 01:37
Add mutations that replace collection-returning expressions with empty values.

* to_a/to_ary calls mutate to empty array
* to_h/to_hash calls mutate to empty hash
* to_s/to_str calls mutate to empty string
* String literals mutate to empty string
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