# \`Pair{A,B}\` vs. \`Tuple{A,B}\`

**URL:** https://discourse.julialang.org/t/pair-a-b-vs-tuple-a-b/942
**Category:** General Usage
**Created:** [December 14, 2016, 1:59pm UTC](https://discourse.julialang.org/t/pair-a-b-vs-tuple-a-b/942 "2016-12-14T13:59:09Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [May 20, 2021, 1:07pm UTC](https://discourse.julialang.org/t/pair-a-b-vs-tuple-a-b/942/5 "2021-05-20T13:07:46Z")

</div>

I don’t think that (lack of) covariance motivated the implementation of `Dict`, `Pair` is simply convenient with the `=>` syntax. In any case, note that internally `Dict` does not use `Pair`, it is just for construction.

`Pair` is generally used in contexts where you need to store a pair of objects that belong together.

I would mostly use `Pair` to signify intent, and for dispatch. Eg the `Dict(::Pair...)` constructor is different from the fallback `Dict(itr)`.

---

_[View the full topic](https://discourse.julialang.org/t/pair-a-b-vs-tuple-a-b/942)._
