bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.26k stars 3.58k forks source link

Maybe rename `TextUiWriter` to `UiTextWriter` #16394

Open Olle-Lukowski opened 1 day ago

Olle-Lukowski commented 1 day ago

In bevyengine/bevy-website#1782, it was mentioned that the (WIP) migration guide for the text rework (#15591), refers to UiTextWriter instead of the actual name we have right now TextUiWriter.

I think it is obvious how this mistake slipped in there, UiTextWriter is a more intuitive name. It is (in my opinion) better to have a type alias' name have something appended or prepended to the name, instead of plopping something in the middle (like we have right now, where we added Ui in between instead of at the front).

The same thing goes for TextUiReader, I think they should both be renamed.

Let me know what you think, just wanted to ask this before I start writing some stuff for the website.

rparrett commented 1 day ago

These were renamed on purpose in https://github.com/bevyengine/bevy/pull/15887. Its migration is meant to guide section is meant to replace the one for #15591.

ickshonpe commented 18 hours ago

Yeah I didn't like the new Text<X>Reader/Writer naming scheme from the PR but didn't feel like it was important enough to fuss over. Definitely strongly prefer prefixes or suffixes over infixes for name discriminators.