# Mux.jl mysterious d() function

**URL:** <https://discourse.julialang.org/t/mux-jl-mysterious-d-function/27436>\
**Category:** Web Stack\
**Created:** [August 11, 2019, 11:40pm UTC](https://discourse.julialang.org/t/mux-jl-mysterious-d-function/27436 "2019-08-11T23:40:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![milesf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/milesf/32/9289_2.png) [@milesf](https://discourse.julialang.org/u/milesf)\
**Post date:** [August 11, 2019, 11:40pm UTC](https://discourse.julialang.org/t/mux-jl-mysterious-d-function/27436/1 "2019-08-11T23:40:48Z")

</div>

Where is this `d()` function defined? I can’t find it in Mux.jl, or HTTP.jl.

[https://github.com/JuliaWeb/Mux.jl/blob/b8419df8774c0ee14052320d22bab41b653d0c01/src/routing.jl#L19](https://github.com/JuliaWeb/Mux.jl/blob/b8419df8774c0ee14052320d22bab41b653d0c01/src/routing.jl#L19)

---

<div class="post-metadata">

**Author:** ![Ralph\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ralph_smith/32/10344_2.png) [@Ralph\_Smith](https://discourse.julialang.org/u/Ralph_Smith)\
**Post date:** [August 12, 2019, 12:11am UTC](https://discourse.julialang.org/t/mux-jl-mysterious-d-function/27436/2 "2019-08-12T00:11:10Z")

</div>

```julia
julia-1.1> using Mux

julia-1.1> @which Mux.d()
d(xs...) in Lazy at /home/me/.julia/packages/Lazy/ZAeCx/src/macros.jl:241

```

---

<div class="post-metadata">

**Author:** ![jpsamaroo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jpsamaroo/32/46804_2.png) [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)\
**Post date:** [August 12, 2019, 3:27am UTC](https://discourse.julialang.org/t/mux-jl-mysterious-d-function/27436/3 "2019-08-12T03:27:16Z")

</div>

Yeah, the name of this function really bugged the crap out of me when I first started working on some features for Mux. It could really stand to be removed from Mux entirely (and probably deprecated and renamed in Lazy.jl).

---

<div class="post-metadata">

**Author:** ![jlapeyre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jlapeyre/32/4514_2.png) [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Post date:** [August 12, 2019, 4:36pm UTC](https://discourse.julialang.org/t/mux-jl-mysterious-d-function/27436/4 "2019-08-12T16:36:48Z")

</div>

`params = Lazy.d()` would be a big improvement. But, the definition is `d(xs...) = Dict{Any, Any}(xs...)`. So, an even bigger improvement would be to write `Dict` directly.

---

<div class="post-metadata">

**Author:** ![tk3369](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tk3369/32/2824_2.png) [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Post date:** [August 13, 2019, 4:45am UTC](https://discourse.julialang.org/t/mux-jl-mysterious-d-function/27436/5 "2019-08-13T04:45:41Z")

</div>

Lazy.jl is named as such for a reason 🙂
