Scala 3 Comprehension Syntax
Finally a real reason to upgrade to Scala 3 for Wha!? For comprehension improvements are coming!!! 1. Starting for comprehensions with aliases: Current Syntax: val a = 1 for { b <- Some(2) c <- doSth(a) } yield b + c New Syntax: for { a = 1 b <- Some(2) c <- doSth(a) } yield b + c
A social media post celebrates Scala 3 introducing improved syntax for for-comprehensions with aliases. The joke is that this small syntax change is presented as the long-awaited real reason to upgrade, making it a reaction for Scala developers discussing language updates.
social media post / публикация в соцсетиprogramming code / программный кодdark-themed interface / тёмный интерфейсprofile photo / фотография профиляverified badge / значок верификацииnested post / вложенная публикацияcode block / блок кодаsyntax comparison / сравнение синтаксисаtext caption / текстовая подписьcomputer programming / компьютерное программирование
- @profunctor_io / 10162 2024-06-21
- Type
- image
- Size
- 800×683 · 55.8 KiB
- Mood
- sarcastic
- Language
- en
- Added