[hashcash] Re: new format tweak coming...

>>>>> "Justin" == Justin Mason <jm@xxxxxxxxxx> writes:

[...]

Adam> Yes I had come to think the same thing ... re "'" or '"' as the
Adam> two choices, and this is the "perl" thing, plus "\"'" and '"'\'

Ben> This is icky - whatever format you use should, IMO, be regex
Ben> friendly, and trivial to parse. This is neither. I'd vote for URL
Ben> encoding.

Justin> +1 on this idea -- me too.  URL encoding is much easier to parse
Justin> than backslashing.

My personal opinion is that since the stamps are primarily meant for
computer consumption, to just use a single type of quotes, and
backslash-escape the quotes, and backslash.  It takes a bit less
processing, and is still fairly readable if anyone wants to look at the
stamp.

I don't see backslashing any harder to parse than URL encoding -- just
scan through the string from left to right, and every time you see a
backslash, drop it and take the next character as a literal.

I also don't see backslashing, or having two types of quotes, as being
regex unfriendly.

-- 
Hubert Chan <hubert@xxxxxxxxx> - http://www.uhoreg.ca/
PGP/GnuPG key: 1024D/124B61FA
Fingerprint: 96C5 012F 5F74 A5F7 1FF7  5291 AF29 C719 124B 61FA
Key available at wwwkeys.pgp.net.   Encrypted e-mail preferred.


Other related posts: