SodiumFRP / sodium

Sodium - Functional Reactive Programming (FRP) Library for multiple languages
http://sodium.nz/
Other
850 stars 140 forks source link

MapTo for Behavior/Cell #141

Closed jam40jeff closed 6 years ago

jam40jeff commented 6 years ago

@the-real-blackh I noticed that a pull request was recently created to add mapTo to Cell in the TypeScript version. Is this something you think should be added for all languages or do you think it's an unnecessary addition?

the-real-blackh commented 6 years ago

Umm... I didn't pay that much attention when I first saw it... but actually I don't think there's any point to it at all. Certainly for a Behavior it's equivalent to a constant cell. For a Cell, it's almost equivalent to a constant cell.

the-real-blackh commented 6 years ago

I put a comment on there saying I don't want this. The author actually cancelled it after submitting it, so he must have realized that it doesn't make much sense.

jam40jeff commented 6 years ago

Great, that was my opinion as well, although I figured maybe the author had a use case I hadn't imagined.