cogentcore / core

A free and open source framework for building powerful, fast, and elegant 2D and 3D apps that run on macOS, Windows, Linux, iOS, Android, and the Web with a single pure Go codebase, allowing you to Code Once, Run Everywhere.
http://cogentcore.org/core
BSD 3-Clause "New" or "Revised" License
1.31k stars 71 forks source link

Fold views into core and remove view from type and package names #979

Closed kkoreilly closed 2 weeks ago

kkoreilly commented 2 weeks ago

This PR folds the views package into core and removes view from various type and package names. This is because the distinction between views and core was poorly defined, unnecessary, and deleterious. Widgets are widgets, and there is no reason to put half of them in a different package; that just leads to confusion as to where things actually are. Furthermore, view is a completely meaningless word that does not semantically or logically describe what anything does, so removing it from package names improves clarity and accuracy. The new paradigm is to name the GUI version of a package somethingcore, like tensorcore or plotcore. This conveys that it is a package using core, which is much more meaningful than view. Moreover, this PR establishes semantic, GUI-based names for various widgets; for example, it renames SliceView to List and TableView to Table. Once again, the View accomplishes nothing and makes it seem more complicated than it actually is.