Keyword choice: inout/set/sink have different context #1639
lonetech
started this conversation in
Language design
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Each of these uses a different frame of reference, despite being options for the same field. Can't they be unified at all?
inout: Possibly inherited from Ada, very clear, uses inside or outside the call boundary. Exists before and after call, but may change.
sink: Possibly from gstreamer? Is the analogy water in a kitchen? Means consumed by call.
set: Imperative verb. Easily confused with e.g. set theory. Means produced by call.
Nothing: Absence of keyword. Default is non-destructive input. Means may be read.
E.g. one imperative form might be modify/take/put/read.
Beta Was this translation helpful? Give feedback.
All reactions