16 ms·
A question to the author, about a choice in language design. // Import some libraries. bring s3; If the keyword was the usual "import" there would be no n
by pmontra 2y ago
A question to the author, about a choice in language design.
// Import some libraries.
bring s3;
If the keyword was the usual "import" there would be no need to explain what "bring" is. Or, if "bring" is so good, why not
// Bring some libraries.
?
- chriscbr 2y agoTotally fair. The choice to name it "bring" instead of "import" or "use" was mainly to add some flavor to the language, and make it easier to distinguish from the top of the file that "ah, this is a Wing code snippet, not a Zig/TypeScript/Python code snippet".