Mutability in Scala | Rock the JVM

preview_player
Показать описание


This is a video for Scala programmers of all levels. Even if you're more experienced, this video can still show you a few things you may not know.

In this video we will talk about how to create mutable data in Scala, including variables, mutable data structures and update-able arrays and classes. You may be surprised, but Scala is not dogmatic on pure functional programming, but even has language-level constructs around mutability. When used wisely, these tools can be very powerful.

Follow Rock the JVM on:

-------------------------------------------------------------------------
-------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

Very interesting stuff Daniel! Wasn’t aware about “_=“ or the “update” special methods! I hope I never have to use them, but if there’s ever a use case, this knowledge will be immensely useful. Thanks!

nickdawiz
Автор

I would like a video about how to handle mutability on concurrent environments. When to use ScalaSTM for example, to have a Ref instead of a var.

leorandomnickname
Автор

I make my values immutable in every language - including procedural/imperative ones

catomajorcensor
Автор

this sounds like a carbon copy of .Net's properties (get;set;)

alphaprimal