- 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
推薦閱讀
- .NET之美:.NET關(guān)鍵技術(shù)深入解析
- Learning RxJava
- FreeSWITCH 1.6 Cookbook
- Python Geospatial Development(Second Edition)
- 碼上行動:用ChatGPT學(xué)會Python編程
- 單片機(jī)C語言程序設(shè)計實(shí)訓(xùn)100例
- 區(qū)塊鏈技術(shù)與應(yīng)用
- Unity 2017 Mobile Game Development
- Mastering ArcGIS Enterprise Administration
- UI設(shè)計全書(全彩)
- Xcode 6 Essentials
- Python 3 數(shù)據(jù)分析與機(jī)器學(xué)習(xí)實(shí)戰(zhàn)
- 從Excel到Python數(shù)據(jù)分析:Pandas、xlwings、openpyxl、Matplotlib的交互與應(yīng)用
- Python Deep Learning
- Practical Maya Programming with Python