Skip to content

x.json2: rename Any.arr() to Any.as_array() for consistence with as_map(), as_map_of_string(), deprecate Any.arr()#26455

Merged
spytheman merged 2 commits into
vlang:masterfrom
gechandesu:rename_xjson2_arr
Jan 28, 2026
Merged

x.json2: rename Any.arr() to Any.as_array() for consistence with as_map(), as_map_of_string(), deprecate Any.arr()#26455
spytheman merged 2 commits into
vlang:masterfrom
gechandesu:rename_xjson2_arr

Conversation

@gechandesu

Copy link
Copy Markdown
Contributor

A bit more letters, but a consistent and obvious function name.

…ap(), as_map_of_string(), deprecate Any.arr()
Comment thread vlib/x/json2/README.md Outdated

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @gechandesu 🙇🏻 .

@spytheman spytheman merged commit f94fa74 into vlang:master Jan 28, 2026
85 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.

2 participants