Skip to content

Commit

Permalink
Merge pull request #7 from acutmore/patch-1
Browse files Browse the repository at this point in the history
Add alternative names to bikeshed
  • Loading branch information
codehag authored Jan 30, 2021
2 parents 373beab + 3b5e75a commit 563a619
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 563a619

Please sign in to comment.