2026-07-22 10:46 UTC
Replies (1)
-
@loke@functional.cafe 2026-07-22 13:08
@numeredevs@fosstodon.org @jwildeboer@social.wildeboer.net that's true. The behaviour I described was caused by the specific method I chose to parse the data (manual splitting). I have to admit not reading the specification, which I presume would mention the existence of blank state vectors. The 'proper' way to parse this based on my assumptions would be to use a regex to break out the components and then parse them as numbers. The regex match would then fail on an invalid string. This is actually what I usually do, but the manual solution showed off more of the array manipulation primitives in Kap compared to a simple call to regex:match. reference.html#_regexmatch_match_string_against_regex (and now I realise that I should document those functions more than just listing their names).