d2 icon indicating copy to clipboard operation
d2 copied to clipboard

compiler: add different scalar types

Open gavin-ts opened this issue 3 years ago • 0 comments

https://github.com/terrastruct/d2/blob/7f7977eb8b2f7594e72391f2f068715160835536/d2graph/d2graph.go#L45

If it is already valid, I wonder if we shouldn't have it properly set in d2graph.Scalar to use the parsed value instead of Value as a string everywhere and requiring to cast it every time we need to use it

Originally posted by @ejulio-ts in https://github.com/terrastruct/d2/pull/250#discussion_r1036327979

gavin-ts avatar Nov 30 '22 18:11 gavin-ts