shorter_maps
shorter_maps copied to clipboard
Elixir ~M sigil for map shorthand. `~M{id, name} ~> %{id: id, name: name}`
After upgrading to elixir `1.16.0`, we now get compile time errors everywhere `shorter_maps` is used: ``` elixir ** (ArgumentError) interpolation is not supported with the ~M sigil (shorter_maps 2.2.5) expanding...
Background: https://github.com/elixir-lsp/elixir-ls/issues/928#issuecomment-1614643525 I opened a bug with elixirls because I was getting a warning from vscode: ``` (ArgumentError) interpolation is not supported with the ~M sigil Stacktrace: │ (shorter_maps 2.2.5)...
Closes #17 This upgrades `shorter_maps` to support Elixir 1.16 with the following two changes: - The `[line: line]` pattern match is appears to be unreliable for the 2nd field of...
thanks for the library. i had my homegrown thing which wasn't half as powerful. there's a bug when using alt names: ``` iex> Mix.install([:decimal, {:shorter_maps, "~> 2.0"}]) iex> import ShorterMaps...
Elixir 1.14.0 Erlang/OTP 24 The sigil seems to not be working with `ExUnit`'s `assert` macro when used as an argument to a function. #### To reproduce: ```elixir defmodule ShorterMapsTest do...
```elixir iex(1)> foo="foo" "foo" iex(2)> bar="bar" "bar" iex(3)> ~K{foo, bar} [foo: "foo", bar: "bar"] ```
I have a use case in which I have a list of fields names that I would like to interpolate into the ~m and ~M sigils. Current functionality ``` iex(9)>...
Hey. not a dev of either one of these packages, but i find https://github.com/abshierjoel/tiny_maps to work properly and maintained.