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

hash port, addressable port with string indexes #20

Open
forresto opened this issue Sep 20, 2014 · 2 comments
Open

hash port, addressable port with string indexes #20

forresto opened this issue Sep 20, 2014 · 2 comments

Comments

@forresto
Copy link

This would make it possible to specify names for the ports, as opposed to a numerical index. Otherwise, it would work the same as array ports.

noflo/noflo#262

@alfa256
Copy link

alfa256 commented Sep 20, 2014

Iterating over connected hash ports would be a needed functionality, also some convention for hash port names.
I suggest sticking to lowercase and snake_case names for hashports.

@trustmaster
Copy link
Member

This feature would improve readability and maintainability of static routing in FBP apps a lot.

Currently I have to write something like this:

'GET /index' -> PATTERN[0] Router
'GET /admin' -> PATTERN[1] Router

Router REQ[0] -> REQ IndexController
Router REQ[1] -> REQ AdminController

These numeric indexes are getting hard to maintain as the number of them grows. Compare it to this:

'GET /index' -> PATTERN[index] Router
'GET /admin' -> PATTERN[admin] Router

Router REQ[index] -> REQ IndexController
Router REQ[admin] -> REQ AdminController

Makes much more sense to a graph designer.

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

No branches or pull requests

3 participants