News for hackers. Stuff that matters.
Re:YAML: Probably not so great after all by crdoconnor on Sunday August 18, 2019 @08:12PM (#20733821)
Ah I see, yes that makes perfect sense. I've used integer keys too. Sorry, I thought by non-string you meant non-scalar - i.e. the idea of using lists as keys (allowed in YAML).
Re:YAML: Probably not so great after all by zbentley on Sunday August 18, 2019 @09:09PM (#20734100)
I think they did mean nonscalar keys. Say I have a compoubd primary key in a database, over 3 columns. In YAML, representing that key as an array of the three columns' values (or a map from column name to value) makes sense, and so does using that as a key in other maps.