10. Representing unknown values Flashcards
Julia as a Second Language
What does a null or nil object (used in other programming languages but not in Julia) represent?
Julia as a Second Language
What is a big problem with using null or nil in a programming language?
Julia as a Second Language
What object in Julia is the closest thing Julia has to a null or nil object?
Julia as a Second Language
What is a nothing object and what type is it?
Julia as a Second Language
How many instances of the nothing object can a program have?
Julia as a Second Language
How can you create an object that is empty, similar to the nothing object?
Julia as a Second Language
What happens when you call composite type with no fields?
Julia as a Second Language
What is P{T} ?
Julia as a Second Language
What is Union ?
Julia as a Second Language
How will the different types included in a Union{} be related to each other?
Julia as a Second Language
Does the order of Union type parameters matter?
Julia as a Second Language
How do you represent missing values in Julia?
Julia as a Second Language
What happens to a mathematical operation if it contains a missing object?
Julia as a Second Language
Any data with a missing object in it mathematically evaluates to missing. How can can the mathematical evaluation be told to skip the missing data?
Julia as a Second Language
What is NaN ?
Julia as a Second Language
What are the differences and similarities of these objects: nothing, missing, NAN, Undefined ?