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

... (streaming operator) #732

Open
emil14 opened this issue Oct 18, 2024 · 2 comments
Open

... (streaming operator) #732

emil14 opened this issue Oct 18, 2024 · 2 comments

Comments

@emil14
Copy link
Collaborator

emil14 commented Oct 18, 2024

Before

getList -> listToStream -> forEach
getDict -> dictToStream -> forEach

After

getList... -> forEach
getMap -> forEach

Props: this way we don't have to memorize naming for these convertors

Cons: doesn't cover case with arr-ports

@emil14
Copy link
Collaborator Author

emil14 commented Oct 18, 2024

another way is

getList -> ... -> forEach

this might be better because of the same problems with struct selectors (also existing struct selectors could be sender/receiver kinds/expressions themselves)

@emil14
Copy link
Collaborator Author

emil14 commented Nov 2, 2024

XXX... allows more obvious usage in for statements

'''
for xxx... {

}
'''

OTOH 'xxx -> ... ->' allows multiple receivers flexibility

xxx -> [foo, ... -> bar]

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

1 participant