From 3b5e75a07e88ee42da3f47d9b98ccd06fcb2ae0f Mon Sep 17 00:00:00 2001 From: Ashley Claymore Date: Sat, 30 Jan 2021 18:49:19 +0000 Subject: [PATCH] add alternative names Adds 'preferLazy' and 'lazyHint' alternatives from #6 --- bikeshed.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bikeshed.md b/bikeshed.md index fd3406c..93908ba 100644 --- a/bikeshed.md +++ b/bikeshed.md @@ -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 } @@ -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):