You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,10 @@ This often results in repetitive code patterns such as `ctx = %{variable: variab
15
15
I believe that introducing a shorthand form of object creation to Elixir enhances the language's ergonomics and is a natural extension of its existing map literals syntax.
16
16
This feature will be immediately familiar to JavaScript and Rust developers, and similar shorthands are present in other languages such as Go.
17
17
18
+
### Is there any runtime overhead?
19
+
20
+
No; the shorthand map keys compile down to exactly the same bytecode as the "old-style" maps.
21
+
18
22
## Installation
19
23
20
24
The package can be installed by adding `es6_maps` to your list of dependencies and compilers in `mix.exs`:
0 commit comments