[REBOL] Re: adding line hints when building blocks
From: greggirwin:mindspring at: 24-May-2002 16:58
hi Ammon,
<< Just a shot in the dark (I am still not sure what you are attempting, an
example maybe?) Have you tried placing the word 'newline in where you
wanted
a new line? and I think that there is a similar one for tab IIRC. >>
Yup. Tried various combinations of things, reducing, composing, etc. but no
luck so far.
The goal is to write out, to a file, something like this:
item-1-id [
value 0
mail [foo--bar--com]
]
item-2-id [
value 1
mail [foo--baz--com]
]
which is an easy format to create and edit manually, and also very easy to
just LOAD for use in scripts. The format you get without line hints is much
harder to work with manually. E.g.
item-1-id [value 0 mail [foo--bar--com]] item-2-id [value 1 mail [foo--baz--com]]
item-3-id [value 1 mail [foo--baz--com]] item-4-id [value 1 mail [foo--baz--com]]
item-5-id [value 1 mail [foo--baz--com]]
The new serialized format will be fine for apps you don't want to edit
manually, and for REBOL developers, but for the average joe
(script-tinkerer, help-desk personnel), I think the native block format
might be much better.
--Gregg