@YuMingLiao discovered that the tutd interpreter cannot support IntAtom inputs:
TutorialD (master/main): x:=relation{name Text, age Int}{tuple{name "Steve", age 40},tuple{name "Mike", age 31}}
ERR: AtomTypeMismatchError IntAtomType IntegerAtomType
The reason is that all integer inputs default to IntegerAtoms. Without typeclasses, it would be hard to support multiple string inputs to various data types though it should be easy since the type is pre-declared in this case.
As a short-term fix, perhaps I can add an int()AtomFunction which converts an Integer to an Int (without bounds checking, of course).
@YuMingLiao discovered that the
tutd
interpreter cannot supportIntAtom
inputs:The reason is that all integer inputs default to
IntegerAtom
s. Without typeclasses, it would be hard to support multiple string inputs to various data types though it should be easy since the type is pre-declared in this case.As a short-term fix, perhaps I can add an
int()
AtomFunction
which converts anInteger
to anInt
(without bounds checking, of course).