- Learning Scala Programming
- Vikash Sharma
- 163字
- 2021-06-30 19:07:48
Building Blocks of Scala
"You can't build a great building on a weak foundation. You must have a solid foundation if you're going to have a strong superstructure."
- Gordon B. Hinckley
Our aim as programmers is to provide a solution to a problem through some logical implementation. Programming languages work as a tool for just that. When we implement a solution to a problem, we must be able to describe the problem (specification) so that a programming language can verify (verification) whether the solution indeed solves the problem.

Problem Solution
For implementation, we use various programming constructs, which are basic entities with some syntactic rules. These entities work as building blocks for any programming language. In Scala, we have similar syntax to almost any other programming language. We use keyword/name/classifier/bound-entity. In this chapter, our aim is to get familiar with some of the building blocks. We'll go through:
- The val and var keywords
- Literals
- Data types
- Type Inference
- Operators
- Wrapper classes
- String interpolation
推薦閱讀
- Java程序設計實戰教程
- 機器學習系統:設計和實現
- Python數據可視化:基于Bokeh的可視化繪圖
- 動手玩轉Scratch3.0編程:人工智能科創教育指南
- Python程序設計(第3版)
- ASP.NET動態網頁設計教程(第三版)
- MariaDB High Performance
- Python程序設計案例教程
- 軟件架構:Python語言實現
- 精通Python自然語言處理
- Extending Puppet(Second Edition)
- Cybersecurity Attacks:Red Team Strategies
- 用戶體驗可視化指南
- Flowable流程引擎實戰
- Windows Phone 8 Game Development