Hmm... this is the kind of feature that I would've used a lot, had I known
that a package that provided this shorthand syntax existed.
I will definitely do so in the future. I really like the sigil idea.
Are we still opposed to including the `~m` sigil in the base language?
On Sunday, May 31, 2015 at 12:19:46 PM UTC+2, Devin Torres wrote:
>
> Taking a pretty cool page out of ES6:
>
> # If `method`, `url`, `headers`, and `payload` are already bound
> %Request{method, url, headers, payload}
>
> # If e.g. `payload` hasn't been bound yet
> %Request{method, url, headers, payload: get_payload()}
>
--
You received this message because you are subscribed to the Google Groups
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-core/710fca6c-c2a9-43ae-a469-57fb44c887a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.