type checking and error handling for builtins improved.
This commit is contained in:
@@ -2,6 +2,10 @@ package object
|
||||
|
||||
type Null struct{}
|
||||
|
||||
func (n *Null) Bool() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (n *Null) Type() ObjectType {
|
||||
return NULL_OBJ
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user