- Learn Scala Programming
- Slava Schmidt
- 215字
- 2021-06-10 19:35:38
Conventions used
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "In Scala 2.13, StringOps has been extended with option-returning methods for string literals parsing. Supported types include all numeric types and Boolean."
A block of code is set as follows:
object UserDb {
def getById(id: Long): User = ???
def update(u: User): User = ???
def save(u: User): Boolean = ???
}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
scala> val user = User("John", "Doe", "jd@mail.me")
user: User = User(John,Doe,jd@mail.me)
scala> naiveToJsonString(user)
res1: String = { "name": "John", "surname": "Doe", "email": "jd@mail.me" }
Any command-line input or output is written as follows:
take
-S--c--a--l--a-- --2--.--1--3-
take
Lazy view constructed: -S-S-c-C-a-A-l-L-a-A- -
Lazy view forced: -S--c--a--l--a-- -List(S, C, A, L, A, )
Strict: List(S, C, A, L, A, )
Bold: Indicates a new term, an important word, or words that you see on screen.
Warnings or important notes appear like this.
Tips and tricks appear like this.
推薦閱讀
- 大學(xué)計(jì)算機(jī)基礎(chǔ)(第二版)
- ASP.NET MVC4框架揭秘
- 軟件項(xiàng)目管理實(shí)用教程
- HTML5+CSS3網(wǎng)頁設(shè)計(jì)
- 第一行代碼 C語言(視頻講解版)
- Python Data Structures and Algorithms
- 動手學(xué)數(shù)據(jù)結(jié)構(gòu)與算法
- Spring MVC+MyBatis開發(fā)從入門到項(xiàng)目實(shí)踐(超值版)
- Visual C++程序設(shè)計(jì)與項(xiàng)目實(shí)踐
- Java EE架構(gòu)設(shè)計(jì)與開發(fā)實(shí)踐
- 快樂編程:青少年思維訓(xùn)練
- 企業(yè)級Java現(xiàn)代化:寫給開發(fā)者的云原生簡明指南
- Spring Boot 2+Thymeleaf企業(yè)應(yīng)用實(shí)戰(zhàn)
- The C++ Workshop
- Java程序員面試筆試真題庫