gyscos / cursive

A Text User Interface library for the Rust programming language
MIT License
4.3k stars 245 forks source link

The great renaming #393

Open gyscos opened 5 years ago

gyscos commented 5 years ago

Naming is a notoriously hard problem, but we can probably do better than the current status quo.

Some of the expansion traits would need to adapt as well.

It's not a lot of types to renames, but they are very commonly used.

gyscos commented 5 years ago

Some modules refactor may come at the same time.

gyscos commented 4 years ago

The most controvertial change here is the removal of the View suffix from view names. To better understand the implications, here is the exact renaming it would include:

gyscos commented 4 years ago

Haven't stripped the View suffix yet, but the first phase of the renaming has been done:

BoxView -> ResizedView Boxable -> Resizable SizedView -> LastSizeView ViewBox -> BoxedView IdView -> NamedView Selector::Id -> Selector::Name Identifiable -> Nameable *_id -> *_name

Old names are still exported, but deprecated (except for Boxable and Identifiable, trait alias are unstable and simple re-use are not deprecatable).