Refactor Type to be an int
This commit is contained in:
@@ -17,8 +17,8 @@ func (s *String) Bool() bool {
|
||||
return s.Value != ""
|
||||
}
|
||||
|
||||
func (s *String) Type() ObjectType {
|
||||
return STRING_OBJ
|
||||
func (s *String) Type() Type {
|
||||
return StringType
|
||||
}
|
||||
|
||||
func (s *String) Inspect() string {
|
||||
|
||||
Reference in New Issue
Block a user