Scala Language Best Practices

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Remarks

Prefer vals, immutable objects, and methods without side effects. Reach for them first. Use vars, mutable objects, and methods with side effects when you have a specific need and justification for them.

-- Programming in Scala, by Odersky, Spoon, and Venners

There are more example and guideline in this presentation by Odersky.



Got any Scala Language Question?