Was ist neu in Scala 3?

Was ist neu in Scala 3?

Seit geraumer Zeit in Arbeit, erschien das erste Release Candidate von Scala 3 im März 2021. Höchste Zeit, sich die verschiedenen Neuerungen anzuschauen. Denn es wurden nicht nur alte Features gestrichen, sondern auch die existierenden aufpoliert, weshalb Programmieren in Scala noch mehr Spaß macht als früher. Auch für Fans von Kotlin und Java 8+ ist etwas dabei.

Lars Hupel

August 11, 2021

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

18 slides
  1. W a s i s t n e u i

    n S c a l a 3 ? L a r s H u p e l I N N O Q T e c h n o l o g y L u n c h 2 0 2 1 - 0 8 - 1 1
  2. 1 9 9 4 J V M 1 . x

    2 0 0 4 2 0 J a n u a r y 2 0 0 4 S c a l a 1 2 . x 2 0 0 6 2 0 2 1 0 3 F e b r u a r y 2 0 1 2 S c a l a 2 . 8 . 0 0 6 D e c e m b e r 2 0 1 2 D o t t y s t a r t e d 1 4 M a r c h 2 0 1 6 S c a l a C e n t e r f o u n d e d 0 7 J u n e 2 0 1 9 S c a l a 2 .1 3 . 0 1 3 M a y 2 0 2 1 S c a l a 3 . 0 . 0
  3. W a s i s t S c a l

    a 3 ? • v o n G r u n d a u f n e u e n t w i c k e l t • z u g r o ß e n T e i l e b i n ä r - u n d s o u r c e - k o m p a t i b e l z u S c a l a 2
  4. W a r u m S c a l a

    3 ? • a u f g e r ä u m t & v e r e i n f a c h t • e i n f a c h e r e r l e r n b a r • b e s s e r e B i n ä r k o m p a t i b i l i t ä t • S y n t a x f ü r g ä n g i g e M u s t e r
  5. 3 . O p t i o n a l

    e K l a m m e r n
  6. 2 . M e t a p r o g

    r a m m i e r u n g
  7. inline def fact(inline n: Int): Int = if n <=

    0 then 1 else n * fact(n - 1)
  8. W e i t e r e A n w

    e n d u n g s f ä l l e • S e r i a l i s i e r u n g / D e s e r i a l i s i e r u n g • B e r e c h n u n g v o n T y p e n • S t a g i n g
  9. Ö k o s y s t e m •

    C o m m u n i t y h a t d i e M i g r a t i o n f r ü h m i t b e g l e i t e t • w i c h t i g e B i b l i o t h e k e n n o c h v o r R C - P h a s e v e r ö f f e n t l i c h t • C r o s s - P u b l i s h i n g w i e b e i S c a l a 2 . x
  10. F a z i t • S c a l

    a 3 i s t e i n e „ g r ö ß e r e “ S p r a c h e a l s S c a l a 2 • i n v i e l e n F ä l l e n k a n n C o d e i n S c a l a 2 w e i t e r v e r w e n d e t w e r d e n • a u t o m a t i s c h e M i g r a t i o n s h i l f e n e x i s t i e r e n • e r l e i c h t e r t g ä n g i g e P r o g r a m m i e r m u s t e r s t a r k
  11. Q & A L a r s H u p

    e l � l a r s . h u p e l @ i n n o q . c o m � @ l a r s r _ h w w w . i n n o q . c o m
  12. L A R S H U P E L S

    e n i o r C o n s u l t a n t i n n o Q D e u t s c h l a n d G m b H L a r s i s k n o w n a s o n e o f t h e f o u n d e r s o f t h e T y p e - l e v e l i n i t i a t i v e w h i c h i s d e d i c a t e d t o p r o v i d i n g p r i n c i p l e d , t y p e - d r i v e n S c a l a l i b r a r i e s i n a f r i e n d l y , w e l c o m i n g e n v i r o n m e n t . A f r e q u e n t c o n f e r e n c e s p e a k e r , t h e y a r e a c t i v e i n t h e o p e n s o u r c e c o m - m u n i t y , p a r t i c u l a r l y i n S c a l a .

More Decks by Lars Hupel

Other Decks in Programming