[
next
] [
prev
] [
contents
] [
up to Ruby Immersion
]
Using Ruby
Type System Choices
There are a lot of choices when designing a type system
Strong vs Weak
Strong:
Impossible to treat an object as an wrong type
Weak:
Possible to use improper operations on an object
Static vs Dynamic
Static:
The type of an expression is known at compile time.
Dynamic:
The type of an expression is only known at run time.
Explicit vs Implicit
Explicit:
All variables and functions are explicitly typed (also called Manifest typing)
Implicit:
The types of variables are implicit (also called Latent typing)
[
next
] [
prev
] [
contents
] [
up to Ruby Immersion
]
Copyright 2003 by Jim Weirich.