Skip to Content
프로그래밍 스칼라: 실용적인 스칼라 활용법을 익히는 가장 확실한 실전 바이블 (2.11.x 버전 기반)
book

프로그래밍 스칼라: 실용적인 스칼라 활용법을 익히는 가장 확실한 실전 바이블 (2.11.x 버전 기반)

by 오현석, 딘 왐플러, 알렉스 페인
July 2016
Beginner to intermediate
776 pages
17h 26m
Korean
Hanbit Media, Inc.
Content preview from 프로그래밍 스칼라: 실용적인 스칼라 활용법을 익히는 가장 확실한 실전 바이블 (2.11.x 버전 기반)
432
2
기본기 다지기
추가로 스칼라
2
.
10
부터는 사용자가
AnyVal
을 확장한 값 클래스를 정의할 수 있게 되었다. 이에
대해서는
8
.
2
절 ‘참조 타입과 값 타입’에서 다뤘다.
반대로 다른 모든 타입은 참조 타입이다. 그런 타입들은
AnyRef
에서 파생된다.
AnyRef
는 자바
java
.
lang
.
Object
(
http
://
bit
.
ly
/
1E8xJKR
)에 해당한다. 자바에서는 기본 타입을 특별하
게 취급하기 때문에, 자바 객체 모델에서는
Object
위에 참조 타입과 기본 타입을 아우르는 부모
타입이 없다.
NOTE
_
스칼라
2
.
1
0
이전에는 컴파일러가 스칼라 참조 타입의 모든 인스턴스에
ScalaObject
라는 ‘표
지’ 트레이트를 혼합했었다. 하지만 더 이상 컴파일러가 그런 일을 하지 않기 때문에 해당 트레이트는 스칼라
2
.
11
에서 제거되었다.
이미 여러 참조 타입에 대해 배웠으며, 진행하면서 다른 참조 타입도 많이 보게 될 것이다. 하지
만 지금이 널리 사용되는 몇 가지 타입에 대해 설명하기 좋은 시점이다.
10.3
Nothing
(그리고
Null
)에 대한 더 많은 내용
Nothing
(
http
://
bit
.
ly
/
1wNaLo6
)
Null
(
http
://
bit
.
ly
/
1tIbUOQ
)은 타입 시스템의 밑바
닥에 있는 두 가지 특이한 타입이다. 특히
Nothing
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

스파크를 이용한 자연어 처리 : 대규모 텍스트를 다루는 가장 효율적인 딥러닝을 만나다

스파크를 이용한 자연어 처리 : 대규모 텍스트를 다루는 가장 효율적인 딥러닝을 만나다

이창현, 앨릭스 토머스

Publisher Resources

ISBN: 9788968482755