Closed Kinnardian closed 5 years ago
I don't understand. Why are you trying to save-table
if temread
works? And how is temload
's result unexpected?
I'd expect #hash((name . "templPipe") (stacks . ("col1" "col2" "col3" "col4" . nil)))
from temload
per the docs here: https://arclanguage.github.io/ref/template.html
I'm fine using temstore
but I was guessing that what appears to be going on is related.
Those docs are [edit: unfortunately] for Arc 3.1, and Anarki isn't compatible. (I think its behavior is superior.) For your purposes you shouldn't care what the internals of a template look like, only that getting/setting fields works as expected.
I was having trouble getting/setting, I figured out why: keys must be quoted
temstore
works and yields this file:((name "templPipe") (stacks ("col1" "col2" "col3" "col4")))
But
temload
also behaves unexpectedly: