From 533fbd97186f492631c96bbb91888db5f8c3d01a Mon Sep 17 00:00:00 2001 From: jackdotink Date: Fri, 21 Feb 2025 12:04:26 -0600 Subject: [PATCH] small -> other --- docs/import-syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/import-syntax.md b/docs/import-syntax.md index 011a4e2..7da5a81 100644 --- a/docs/import-syntax.md +++ b/docs/import-syntax.md @@ -63,7 +63,7 @@ This gives users a second way to import modules, which could be confusing to new The primary alternative is to continue using the existing `require` function. -Some smaller alternatives are: +Some other alternatives are: * Change the contextual keyword `from` to the existing reserved keyword `in`. This may reduce parsing complexity, but would be less intuitive. * Allow programmers to rebind imported values to other names, perhaps something like `import createElement as e from "@React"`. This would be more flexible, but would also be more complex. This pattern could also not be done with autocomplete, as the autocomplete would not know the new name. It is also a fairly uncommon pattern, existing in usage of only a few libraries. Those users could continue to rebind with a `local` statement.