# Compact syntax for combining \`Tuple\` and \`NamedTuple\`: \`(1, 2; x=2, y=3) == ((1, 2), (x=2, y=3))\`

**URL:** https://discourse.julialang.org/t/compact-syntax-for-combining-tuple-and-namedtuple-1-2-x-2-y-3-1-2-x-2-y-3/78101
**Category:** Internals & Design
**Created:** [March 18, 2022, 6:12pm UTC](https://discourse.julialang.org/t/compact-syntax-for-combining-tuple-and-namedtuple-1-2-x-2-y-3-1-2-x-2-y-3/78101 "2022-03-18T18:12:11Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![mtfishman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mtfishman/32/30755_2.png) [@mtfishman](https://discourse.julialang.org/u/mtfishman)
#### Post date: [March 18, 2022, 7:04pm UTC](https://discourse.julialang.org/t/compact-syntax-for-combining-tuple-and-namedtuple-1-2-x-2-y-3-1-2-x-2-y-3/78101/6 "2022-03-18T19:04:57Z")

</div>

> [@simeonschaub](#):
>
> There is [GitHub - ararslan/FrankenTuples.jl: Part Tuple, part NamedTuple… it’s alive!](https://github.com/ararslan/FrankenTuples.jl)

Thanks! Exactly what I had in mind. Maybe an intermediate solution would be a macro that turns everything of the form `(1, 2; x=2, y=3)` into a `FrankenTuple` in a code block but of course it would be nicer if the syntax was built-in.

---

_[View the full topic](https://discourse.julialang.org/t/compact-syntax-for-combining-tuple-and-namedtuple-1-2-x-2-y-3-1-2-x-2-y-3/78101)._
