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

:sig inport of Range is redundant #741

Open
emil14 opened this issue Oct 29, 2024 · 0 comments
Open

:sig inport of Range is redundant #741

emil14 opened this issue Oct 29, 2024 · 0 comments
Labels

Comments

@emil14
Copy link
Collaborator

emil14 commented Oct 29, 2024

Range Case

Existing Range implementation has :sig inport just so we could write

:start -> 1..11 -> list -> println -> :stop

Instead of

:start -> { 1..11 -> list -> println -> :stop }

But that mean we always have to have something that will kick range. In that example that was the case so that was handy but is it worth it? Deferred connections are more universal in that regard and allow both cases - with and without separate kicker. E.g. imagine you wanna create RangeWrapper - you'll end up having all 3 inports :from, :to and :sig.

Other Syntax Forms

This problem is related to all #731 that might have kicker :sig to avoid deferred connections.

Constants

Related to #717

Maybe for constants having :sig inport makes sense, maybe they are really special case. As long as they are not "one-shot" things they do need something to trigger them (or defer, like now)

@emil14 emil14 added the Major label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant