ds300 / derivablejs

Functional Reactive State for JavaScript and TypeScript
Apache License 2.0
515 stars 23 forks source link

Rename Reaction to Reactor #15

Closed ds300 closed 9 years ago

ds300 commented 9 years ago

I'm quite happy with the API lexicon that developed with this library, except recently I've been trying to write about it and Reaction keeps tripping me up. In general use 'reaction' means some kind of action that takes place in response to some stimulus. This is absolutely what Reactions do, but it's not what they are.

And so it seems to me like Reaction should be renamed to Reactor. This adroitly conveys that they are things that do reaction, and not reactions themselves.

I think this would result in the library being easier to write about as well as easier to apprehend for newcomers. Lots of win.