In response to this topic.
Instead of:
platform package [Stdout, Stdin]
requires [main]
provides [mainForHost] to "prebuilt-hosts/"
packages [
Foo, Bar, Baz from "https://…",
Something as Smt from "https://…",
]
I would prefer:
platform-package
exposes [Stdout, Stdin]
requires [main]
provides [mainForHost] to "prebuilt-hosts/"
imports [
Foo, Bar, Baz from "https://…",
Something as Smt from "https://…",
]
interesting! I don't have strong feelings either way about the dash in the initial keyword, but I'm interested in imports over packages.
on the one hand, I don't love package ... packages ... so imports feels nicer.
on the other hand, could that get confusing with the import keyword? I can imagine trying to have a conversation and someone says "imports" and you're not sure if they mean imports or "multiple import declarations" :sweat_smile:
also a thing I like about packages is that it self-answers the question about whether you can import modules with it
on the other hand, could that get confusing with the import keyword? I can imagine trying to have a conversation and someone says "imports" and you're not sure if they mean imports or "multiple import declarations" :sweat_smile:
That is possible but it also seems like confusion here would not have grave consequences :p
packages does not seem self-evident to me, I would doubt if it's exposing packages, wrapping packages or importing them.
Yeah, I think the word packages is confusing because it's unclear that it's intended to be a noun, not a verb. Especially since the other keywords above it are all meant to be verbs. I guess imports packages would make it clear, but maybe it's too much to require two words there.
I spotted this conversation after I left a comment in another thread, so I'll paste it here
Hannes said:
I was going to say something similar to this, when I read the word
packagesI read it as a verb, like "this app packages these things" instead of the noun like "these are the packages to import". Maybe that's because I was used to the current Roc syntax and expected it to read like a sentence, I could probably just get used to a noun like in most languages manifest files.
How about using depends or depends-on as the keyword?
Last updated: Jun 16 2026 at 16:19 UTC