-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Remove NSObject+RACFastEnumeration #108
Comments
Is there going to be a method to get a subscribable from a sequence? |
There's not really a sane way to do that, given that sequences are meant to be used lazily. I would recommend instead setting up APIs to use |
Though you can't really use subscribables and sequences interchangeably since the accessing is different. |
@Coneko Is there any reason not to use a sequence of subscribables for the case you describe? |
I can't |
Maybe the right answer here is to move |
It doesn't really relate to those in my case. I use I use |
I'll add sequence <-> subscribable conversion methods to #92, I think, and then still remove |
Works for me. I'll probably start using sequences in many places where I'm using arrays now once that one goes through anyway. |
Why converting an array to a subscribable instead of a sequence should be discouraged? Aren't those to be seen as two different instances of the As @Coneko is saying, building subscribables starting form an array is a pretty common task in here. |
@thenikso Sequences form a better abstraction for arbitrary computation, while subscribables are better for asynchronous or reactive streams of values. It's not that arrays shouldn't be used as subscribables — simply that sequences make more sense for most such cases, and so should be the default. |
The
rac_toSubscribable
method is pretty similar to therac_sequence
functionality provided on the built-in collection classes. Arguably, the laziness ofrac_sequence
also leads to a better API.The text was updated successfully, but these errors were encountered: