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

Start port type #225

Closed
emil14 opened this issue Mar 19, 2023 · 6 comments
Closed

Start port type #225

emil14 opened this issue Mar 19, 2023 · 6 comments
Labels

Comments

@emil14
Copy link
Collaborator

emil14 commented Mar 19, 2023

First idea was to have Main<T> (start T) (exit int) but then in turns out that using of type-parameters makes no sense there because there's only one use-case always - runtime sends nil (or maybe something else) as a signal to kick execution. Runtime doesn't sends this value further. In other words - it would be easy to use to have simple fixed type for start port.

@emil14 emil14 mentioned this issue Mar 19, 2023
@emil14
Copy link
Collaborator Author

emil14 commented Mar 25, 2023

Configurable start port

Add startMessage parameter and assume there will be start inport that will be triggered by the runtime but instead of sending pointless empty record or nil let it sends the message you want. It will make programming a little bit easier. E.g. - you don't have to use triggers and static ports to implement dreadful "program that does nothing". The same goes for "Hello world"

@emil14
Copy link
Collaborator Author

emil14 commented Mar 25, 2023

Empty record

If we won't implement #225 (comment) or #143 then {} seems to be a good choice

@emil14
Copy link
Collaborator Author

emil14 commented Mar 25, 2023

Any

#143

@emil14 emil14 added the Major label Mar 26, 2023
@emil14
Copy link
Collaborator Author

emil14 commented Jun 29, 2023

Configurable start ports

Same as #225 (comment) but for any amount of ports

@emil14
Copy link
Collaborator Author

emil14 commented Jun 29, 2023

Configurable ports via sugar

Implement #225 (comment) but with the sugar stage. Desugar it into "root -> wrapper with constants -> actual logic"

@emil14
Copy link
Collaborator Author

emil14 commented Jun 29, 2023

Do not implement

Just do same as de sugaring but manually - use const

@emil14 emil14 closed this as completed Oct 10, 2023
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