From 3fe10dc8f2d00287b10e9689449764dfb3eba3af Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Wed, 19 Apr 2023 17:02:37 +0100 Subject: Adds casting all other types to strings by simply putting them in a string --- walk/walk.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'walk') diff --git a/walk/walk.go b/walk/walk.go index cc17245..72fbe11 100644 --- a/walk/walk.go +++ b/walk/walk.go @@ -529,6 +529,14 @@ func Compound(in <-chan Atom) <-chan CompoundResult { break loop case StringAtom: builder.WriteRune(rune(v)) + case ValueNull: + builder.WriteString(v.String()) + case ValueBool: + builder.WriteString(v.String()) + case ValueNumber: + builder.WriteString(v.String()) + case TerminalValue: + builder.WriteString(v.String()) default: out<-CompoundResult{nil, CompoundInvalidStringAtom} break outer -- cgit v1.2.3