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

Array operators return tuple instead #40

Open
taonos opened this issue Jun 9, 2015 · 1 comment
Open

Array operators return tuple instead #40

taonos opened this issue Jun 9, 2015 · 1 comment

Comments

@taonos
Copy link

taonos commented Jun 9, 2015

I have a use case where each signal has a different data type. After some transformation is done to each signal, they will be sent out together as network request. Since their types are different I can't put them in one array. As it stands, array operators like merge2All require all signals to be of the same type. Sure I can cast them to AnyObject but that's just way too verbose, and I will have to cast them back in order to send over network.

I think it's better to use tuple instead of array, in which case any types are allowed.

@inamiy
Copy link
Member

inamiy commented Jun 10, 2015

You are right.
Though using array is simple and scalable, it lacks in type safety.
I will add tuple version in future version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants