-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyword bikeshed #15
Comments
|
Resolve is also used in |
In the last example If one would want to catch the loading exception then it should be written as or
? |
Well, importing an asset resolves the resource and returns a Promise which then resolves. I can see why that's confusing. Another verb that might work is |
Yeah, resolve might be misleading as the resource is not entirely resolved as this is the whole point of it differing from the "normal" It would be asset { resolve } from "foo"
const Foo = await resolve(); |
import
is a verb,asset
is a noun - it doesn't sound like a directive, and they don't pair well.The resulting symbol isn't the actual asset in the first place - only a reference to it.
Scripts (not just assets) could potentially be imported too, if for some reason you want to preprocess a script.
I suggest
resolve
as the keyword.This will pair better with
import
, and more precisely explains how this will merely resolve the location of an asset, or any resource.The text was updated successfully, but these errors were encountered: