Rule 170e-msg-port
Messages
(170)
Comments
The port name of the input must be that of the manager, so a boundary value arriving at one port gives no message through a leaf of another. When is undefined, no rule applies, and the leaf gives no message.
TeX source
\defnrule[r:e-msg-port]
{\Dec{\tau}(j)=v'\premsep\japp{v}{v'}{v''}}
{\effrecv{\effleaf(\effmin(\effp,\tau),v)}{(\effp,j)}{v''}}Tests (5)
- elm / CoreIssue1141UnusedPortCallBreaksSubscriptionTestAn unused port call (`_ = echoOut "unused"` in `init`) breaks a port subscription elsewhere.
- elm / MinimalPortSubscriptionTestA value sent in on a port reaches update as the subscription's message.
- elm / PortEchoTestAn `Int` sent out through an outgoing port comes back unchanged through an incoming port.
- elm-core / CoreIssue1110PortDeclarationOrderTestA subscription returned together with a port command is active in time to receive that command's synchronous reply.
- elm-core / CoreIssue1154PortSubscribedWithCmdTestA port subscription added by the same `update` that sends a command to an outgoing port misses the outgoing port's synchronous reply, depending on the order of the ports in the generated code.
Discussions
Discuss this rule·Search the discussions on GitHub
Discussions are on GitHub; one about this rule has [r:e-msg-port] in its title.
A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.