0%

Scala 3--A Clear, Concise Guide

Scala 3 is concise, consistent, flexible, robust, and efficient, but there's a lot to learn and navigating features and improvements can be challenging. Scala for the Impatient, Third Edition, is a complete yet concise guide that reflects the major enhancements of Scala 3, from improved syntax and revamped type system to powerful contextual abstractions.

This indispensable tutorial offers a faster, easier pathway for learning today's Scala. Horstmann--author of the programming classic, Core Java--covers everything working developers need to know, focusing on hands-on solutions, not academic theory. Given the size and scope of Scala 3, there's plenty to cover but it's presented in small chunks organized for quick access and easy understanding, with plenty of practical insights and focused sample code.

  • Get started quickly with Scala 3 interpreter, syntax, tools, and current usage

  • Master core language features: functions, arrays, maps, tuples, packages, imports, exception handling, and more

  • Design and build better object-oriented code with Scala 3

  • Use Scala for real-world programming tasks: working with files, regular expressions, and processes

  • Work with higher-order functions and the powerful Scala collections library

  • Create concurrent programs with Scala futures

  • Understand the Scala type system, including revamped enums, intersection and union types, and enhanced type inference

  • Use contextual abstractions to easily extend class hierarchies, enrich existing classes, perform automatic conversions, and elegantly hide tedious details

  • Apply advanced "power tools" such as annotations and given values

  • Discover how to "program with types," analyzing and generating types at compile time

  • Get a taste of what's now possible with Scala macros

If you're a Java, Python, C++, or C# programmer who's new to Scala or functional programming--or even if you've already used earlier versions of Scala--this guide will help you write code that's more robust, more efficient, and more secure.

Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.

Table of Contents

  1. Cover Page
  2. About This eBook
  3. Halftitle Page
  4. Title Page
  5. Copyright Page
  6. Pearson’s Commitment to Diversity, Equity, and Inclusion
  7. Dedication Page
  8. Contents
  9. Foreword to the First Edition
  10. Preface
  11. About the Author
  12. Chapter 1. The Basics
  13. Chapter 2. Control Structures and Functions
  14. Chapter 3. Working with Arrays
  15. Chapter 4. Maps, Options, and Tuples
  16. Chapter 5. Classes
  17. Chapter 6. Objects and Enumerations
  18. Chapter 7. Packages, Imports, and Exports
  19. Chapter 8. Inheritance
  20. Chapter 9. Files and Regular Expressions
  21. Chapter 10. Traits
  22. Chapter 11. Operators
  23. Chapter 12. Higher-Order Functions
  24. Chapter 13. Collections
  25. Chapter 14. Pattern Matching
  26. Chapter 15. Annotations
  27. Chapter 16. Futures
  28. Chapter 17. Type Parameters
  29. Chapter 18. Advanced Types
  30. Chapter 19. Contextual Abstractions
  31. Chapter 20. Type-Level Programming
  32. Index
  33. Code Snippets
18.118.144.69