Re: Suggestion: declaring multiple interleaved constant sequences
- Posted by mattlewis (admin) Jun 03, 2014
- 1646 views
petelomax said...
Any thoughts? Has this suggestion already been made, and implemented, and if not, why not?
I'm not a fan of your syntax. We do have multi-assignment, though not on declaration. To sort of use your example:
sequence fields, descs {fields,descs} = { {"signature", "size}, {"(Should be \"Mod\\0\")", "size (in bytes)"} }
That doesn't really do what you're looking for (though Jim already pointed you to columnize()). It's mostly useful when you have a function that returns multiple values.
Matt