Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select a better names for signal, var_signal, events and event_source #116

Open
YarikTH opened this issue Mar 5, 2023 · 1 comment
Open

Comments

@YarikTH
Copy link
Owner

YarikTH commented Mar 5, 2023

Description

signal is a bad name in C++ context, because 99 of 100 C++ programmers remember is as coordinated callback mechanism from Qt, boost etc, while ureact::signal is an observable value instead.

There are a lot of different name variants from different libraries: property, state, cell, value, behavior. It is hard to chose from them.

Apart from signal, events also suffers from bad naming. It is hard to refer both to singular events and for plural events. How to name several events? eventss eventses 🤮?

@YarikTH
Copy link
Owner Author

YarikTH commented Mar 5, 2023

Original C++React author later renamed them into

  • State
  • StateVar
  • Event
  • EventSource

I like how State and Event have the same amount of chars in them and naming problems more or less solved.

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

No branches or pull requests

1 participant