jolie / docs

The Jolie Documentation files
6 stars 23 forks source link

Syntax of allowed interface/operations inside outputPort / inputPort #55

Closed SuperMauro1966 closed 4 months ago

SuperMauro1966 commented 3 years ago

Inside the example https://github.com/jolie/jocker/blob/master/ExampleOrchestrator/clientHello.ol

for joker

we could find a legacy syntax (???) for the interfaces in outputPort:

...

outputPort p { ... RequestResponse: get }

main { get@p()(response); println@Console(response)() }

Shall we update the documentation about the syntax of outputPort/inputPort or modify the example and remove from the parser the old syntax?

mwallnoefer commented 6 months ago

Also mentioning @klag, the original author of the code.

The get call does not contain the input-output-type which is basically the same as RequestResponse: get(undefined)(undefined). However also this old syntax continues to be technically valid.

That said this example isn't part of the docs project so I close this issue here. Feel free to provide a patch (PR) for the jocker subproject if you really want to see it changed.