filmov
tv
The Difference Between Null, Nothing, Nil, None and Unit in Scala | Rock the JVM
Показать описание
This video is for the beginner Scala programmer who comes from another language and might be confused about the different way of expressing the lack of a value. By the end of this video, you'll understand the difference between the null reference, the Null type, Nil, None, Unit and Nothing and will know which is used when. In short:
1. The null reference is used as an absent value - when you access fields or methods you'll get the famous NullPointerException
2. The Null type is the type of the null reference.
3. Nil is the empty List.
4. None is the empty Option.
5. Unit represents "void" from other languages.
6. Nothing is the bottom of the type hierarchy.
We talk more about Nothing on video and on the blog:
Take the free Scala at Light Speed downloadable 2-hour course:
Follow Rock the JVM on:
-------------------------------------------------------------------------
-------------------------------------------------------------------------
Contents:
0:00 intro
1:12 the null reference
2:16 the Null type
5:09 Nil
6:48 None
9:08 Unit
10:50 Nothing
The Difference Between Null, Nothing, Nil, None and Unit in Scala | Rock the JVM
Scala Tutorials - Day 23 | Scala Types - Null/ null, Nil, None, Nothing & Unit
Difference between null ,void and None
None, null, nil: lessons from caching and representing nothing with something
Null vs Undefined in JavaScript - Explained Visually
🔄 NULL values in SQL | NULL vs Zero vs Empty string: Know the Difference🔍
The Difference Between Null and Undefined in JavaScript - One Minute
Null & Void – Everything About Nothing in .NET, by Stefan Pölz
Build your first Virtual Reality game using React Three Fiber and WebXR API
Allow Zero Length. The Difference Between Null and Zero Length String. Indicate No Middle Name.
None Vs Null in Robot Framework
What are Null and Undefined in Javascript?
Are You Using Null And Undefined Wrong?
Difference between Null and Zero or Blank Space | Important Interview Question #interviewquestions
The Difference Between Null and Unannotated Data
Null Hypothesis Alternative Hypothesis #aice #terminology #psychology
MySQL Tutorial - 6 - What is NULL and NOT NULL ?
JavaScript for Developers 14 - Difference between undefined and null
What is the Difference Between Null and Undefined? | JS Concept for Junior Developers #software
python none vs null
4. Иерархия типов. Any, AnyVal, AnyRef. Назначение Unit, Null, Nothing. Уроки Scala....
null vs undefined in JavaScript 🤔
Null & Void - Everything about Nothing in .NET
Null evolution in Minecraft. #shorts
Комментарии