Skip to content

Commit

Permalink
add alternative names
Browse files Browse the repository at this point in the history
Adds 'preferLazy' and 'lazyHint' alternatives from tc39#6
  • Loading branch information
acutmore authored Jan 30, 2021
1 parent 373beab commit 3b5e75a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bikeshed.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The api can take a couple of forms, here are some suggestions:

### Using import attributes

Example using a hypothetical import attribute named "lazyInit" (subject to discussion):
Example using a hypothetical import attribute named "lazyInit" (subject to discussion, some alternatives below):

```js
import {x} from "y" with { lazyInit: true }
Expand All @@ -30,6 +30,11 @@ Drawbacks:
* requires the import attributes proposal
* per-use basis -- if you import a file lazily, you may want to import it lazily everywhere.

Alternative names:

* `... with { preferLazy: true}`
* `... with { lazyHint: true}`

### Using a custom Keyword

Example using the keyword "lazy" as in `lazy import` (subject to discussion):
Expand Down

0 comments on commit 3b5e75a

Please sign in to comment.