tag:blogger.com,1999:blog-8513438391157777465.post2004729713906342640..comments2023-04-07T05:56:45.278-07:00Comments on Re: Factor: Parsing Configuration Filesmrjbq7http://www.blogger.com/profile/06842721076008035602noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8513438391157777465.post-6520581038998276642010-08-13T09:30:07.459-07:002010-08-13T09:30:07.459-07:00Good idea. I had originally thought to keep the p...Good idea. I had originally thought to keep the properties in insertion order (maybe using an association list), but then changed to use hashing for random access.<br /><br />I updated my code on Github to remove the intermediate vector.mrjbq7https://www.blogger.com/profile/06842721076008035602noreply@blogger.comtag:blogger.com,1999:blog-8513438391157777465.post-73690836422344170522010-08-13T06:01:14.643-07:002010-08-13T06:01:14.643-07:00I've been puzzling over this for a while but d...I've been puzzling over this for a while but don't understand why you used a vector sequence type below:<br /><br />: [section] ( line -- section )<br /> unwrap unspace V{ } clone 2array ;<br /><br /><br />... when in the 'section,' word definition, you unroll the section array and convert the vector into a hashtable. <br /><br /><br />Why not define [section] as: <br /><br />: [section] ( line -- section )<br /> unwrap unspace H{ } clone 2array ;<br /><br />.. and save the conversion?Anonymousnoreply@blogger.com