←
Alejandro Serrano11,251 posts
Alejandro Serrano avatar

Alejandro Serrano

@trupill

👨‍💻 Researcher at Kotlin Evolution Team 🧙‍♂️ Haskell wizard 📚 Author of 4 books 👨‍👩‍👦‍👦 +1 of @ElenaVielva

◷ Joined September 2009
Dave Leeds avatar
⟳ Alejandro Serrano retweeted
Dave Leeds@djleeds·May 19

Kotlin's return value checker - lots of developers missed this one. In this video, I show how you can use it to expect call sites to use the values returned from your functions. See you at KotlinConf this week! youtube.com/watch?v=VDEQh2Jk…

Post attachment
Roman Elizarov avatar
⟳ Alejandro Serrano retweeted
Roman Elizarov@relizarov·May 14

Great roadmap! Love it. One underrated lesson from Kotlin: positional destructuring by default was a design mistake. Functional ideas are great and useful, but pragmatic languages for industry should be careful about importing too much academic baggage.

Happy to share that we have folks from the language design team blogging about new features! Check out this post by @trupill about how Kotlin is moving to a safer, Name-Based Destructuring syntax: blog.jetbrains.com/kotlin/20…

Márton Braun (write-only account) avatar
⟳ Alejandro Serrano retweeted
Márton Braun (write-only account)@zsmb13·May 13

Happy to share that we have folks from the language design team blogging about new features! Check out this post by @trupill about how Kotlin is moving to a safer, Name-Based Destructuring syntax: blog.jetbrains.com/kotlin/20…

Marcin Moskała avatar
⟳ Alejandro Serrano retweeted
Marcin Moskała@marcinmoskala·Apr 30

After years of waiting for this feature, we finally have it in Kotlin! Collection literals are supported as an experimental feature since Kotlin 2.4. The idea is simple: You can create a collection using a box bracket. Based on the specified type, a different collection type might be created, like a list or a set. If no type is specified, a list is created by default. Collection literals associated with the of operator on a companion object. You can make them work for custom types by defining this operator. It mustn’t be an extension. Collection literals require Kotlin 2.4 (such as "2.4.0-Beta2”), "-Xcollection-literals” compiler argument, and IntelliJ IDEA 2026.2 (which should be released in EAP around May 5th). Here you can see them used in the KotlinConf application: github.com/JetBrains/kotlinc…

Post attachment
Jingbo Wang avatar
⟳ Alejandro Serrano retweeted
Jingbo Wang@bobowang2014·Mar 29

We encourage undergraduate, master’s, and early-stage PhD students interested in programming languages to apply for PLMW at PLDI 2026. It is a great opportunity to learn from researchers, build connections, and explore future directions in PL. Apply here: pldi26.sigplan.org/home/PLMW…

Dave Leeds avatar
⟳ Alejandro Serrano retweeted
Dave Leeds@djleeds·Mar 17

Destructuring has been a popular feature in Kotlin, but since it's been based on position, it comes with some risks. But with Kotlin 2.3.20, you can eliminate many of those risks! Here's what I mean... Since destructuring is based on position, the order of your variables needs to match the order of the components (such as the data class constructor properties). If you accidentally swap around a few of them, you could end up with some surprises, and it's easy to do, especially when several of the components have the same type! But with Kotlin 2.3.20, you can now enable an experimental feature to use name-based destructuring instead! When activated in "complete" mode, the syntax we've been using up until now will match based on name rather than position. This means you can get them out of order, and it still works. If you use a name that doesn't match, you'll get a compiler error. But for those cases where you actually wanted a different name, you can use a new syntax to assign the component to a different name: val (title, cost = price, author) = book Prefer to use the classic, position-based destructuring? You can use brackets instead of parentheses, like this: val [author, cost, title] = book The bracket syntax brings along some connotations of collections, which seems fitting, since position-based destructuring could still be helpful for things like Pair and List. It's still experimental, and there's a full migration path planned out, but you can activate it today with a compiler argument. What do you think about this feature Do you like the new syntax? Have you run into issues with position-based destructuring in the past? #Kotlin #AndroidDev

Post attachment
Lambda World avatar
⟳ Alejandro Serrano retweeted
Lambda World@Lambda_World·Feb 19

YO! FP Community! Do you know who is coming to Malaga this April? @ElixirConf EU 2026 takes place in Málaga, Spain, this April with 600+ attendees, keynotes from @josevalim and @chris_mccord , and 40+ talks on Phoenix, LiveView, AI/ML, and production systems. As Europe's premier Elixir conference, it's the perfect opportunity to connect with the community and showcase your involvement in the ecosystem.   elixirconf.eu/#register

Post attachment
Márton Braun (write-only account) avatar
⟳ Alejandro Serrano retweeted
Márton Braun (write-only account)@zsmb13·Jan 20

Catch up with everything that's new in Kotlin 2.3 in our latest video! We have some really cool new features (explicit backing fields and unused return value checker!), previously announced features that are stabilizing, neat stdlib updates, and more! youtube.com/watch?v=_6PSSkqw…

Márton Braun (write-only account) avatar
⟳ Alejandro Serrano retweeted
Márton Braun (write-only account)@zsmb13·Jan 16

Here's our overview and links to our initial materials to help you with AGP 9.0 migrations of your Kotlin projects! blog.jetbrains.com/kotlin/20… More to come later still, such as updates in the KMP wizard and in our samples.

Sebastian Sellmair avatar
⟳ Alejandro Serrano retweeted
Sebastian Sellmair@Sellmair·18 Dec 2025

Join our Kotlin/Native team! What a fantastic opportunity to learn deep technical technologies, such as LLVM, compilers, ... 🎉 Please do apply! If you have questions about JetBrains, feel free to ask me (DM) linkedin.com/feed/update/urn…