# Is there a \`with\` operator or usage pattern?

**URL:** <https://discourse.julialang.org/t/is-there-a-with-operator-or-usage-pattern/52693>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [January 1, 2021, 1:05pm UTC](https://discourse.julialang.org/t/is-there-a-with-operator-or-usage-pattern/52693 "2021-01-01T13:05:06Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [January 1, 2021, 8:37pm UTC](https://discourse.julialang.org/t/is-there-a-with-operator-or-usage-pattern/52693/14 "2021-01-01T20:37:44Z")

</div>

It’s also worth noting that you could simply write:

```julia
let s = subtotal
  s.price + s.shipping
end

```

which only requires two more characters but avoids needing any metaprogramming at all. Sometimes the simplest solution is the best 🙂

---

_[View the full topic](https://discourse.julialang.org/t/is-there-a-with-operator-or-usage-pattern/52693)._
