Skip to content

What's the rationale to have "bring" expressions instead of "import" expressions? #779

Answered by 3p3r
gmeligio asked this question in Q&A
Discussion options

You must be logged in to vote

Choice of keyword here is deliberate. An import/include/bring statement is used to fetch code that’s elsewhere and make it available here.

My theory is that, the bring statement is often the very first thing you’d notice in a source code online, and if it’s alien enough, you are more likely to look it up and go “hey what language is that?”.

Which by the existence of this ticket, it proves my theory was right :)

Aside from that, I have design plans for bring’s future. Been experimenting with the concept of bundling raw source code as JSII modules during compile time.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gmeligio
Comment options

gmeligio Nov 30, 2022
Collaborator Author

Answer selected by eladb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants