Skip to content
0:00 / 0:00

#scala#scala3#namedtuples

Going structural with Named Tuples by Jamie Thompson | Scalar Conference 2025

SoftwareMill

3.7K subscribers • 18 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Jamie Thompson, Scala compiler engineer

Intermediate. Assumes working knowledge.

2.5K views1 year ago2 recommendations

Programming languagesLanguage design and type systems

Jamie Thompson explores the new named tuples feature in Scala 3.6 and how to use them for structural typing and DSLs.

Scala 3.6 stabilises the Named Tuples proposal in the main language. It gives us new syntax for structural types and values, and tools for programmatic manipulation of structural types without macros. Can we, and should we, push it to the limit? Of course! let's explore DSL's for config, data, and scripting, for a more dynamic feel. scalar-conf.com/ Scalar Conference 2025 powered by SoftwareMill #scalarconf

Why it's here

2 people recommend this

What people say. Recommended for its practical demos showing how to leverage named tuples and structural typing for lightweight data queries and APIs.

u/jr_thompsonin r/scala • Recommends

Guide to the new named tuples feature in Scala 3.7 Plenty of demos showing how to get the most from named tuples and structural typing- data query, big data, servers/clients with (in my opinion) lightweight code

u/smlaccountin r/scala • Recommends

Going structural with Named Tuples by Jamie Thompson

u/Aromatic_Lab_9405in r/Kotlin • Mentions

On “Is Kotlin the language that I've always looked for?”

…n types of libraries (any type of ser-des). Well type classes in general have a lot of advantages compared to subtype inheritance. 7. Tuples are very powerful in Scala 3, with 3.7 named tuples are being added, it's getting capabilities similar to a structural type system, but it needs more work, to be easy to use. (Interesting video about this: link to this video…