hyperstack-org / hyperstack-org/hyperstack

Consider renaming or aliasing Observable as Subject

Aperta
#236 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
discussion
Lingua principale
JavaScript
Stelle
538
Fork
41
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Definitions of the "Observer Pattern" use the term `Subject` to refer to what Hyperstack calls `Observable`.

Easy enough to make `Hyperstack::State::Subject` a synonym and deprecate Observable.

Note that the module `Hyperstack::State::Observer` already uses the correct term.

For example:

```ruby
class MyObject
include Hyperstack::State::Subject # vs. Hyperstack::State::Observable
...
end
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.