Arc Forumnew | comments | leaders | submitlogin
1 point by thaddeus 5749 days ago | link | parent

Hi CatDancer,

I've changed a bunch of code in json.arc, not sure if you would like me to hand over to you. there are things I have done you might think are good, some maybe bad....

* changed it to support both number types (int and num)

* changed it to output both number types as numbers, rather than strings.

* changed the function name 'alt' to 'alt-em' so that it doesn't conflict with the same function name in 'parser', thus fully co-operates with anarki.

* here's possibly a bad one: I put support in for symbols even though I know json is a public api and in itself doesnt support the concept of a symbol - it helps when I need to auto-load tables, otherwise converting a string to a table-name (type table) is a real pain. Fortunately it's optional, thus the code doesn't require it's use.

* I put in support for nested tables.

let me know if you want me to provide you with my changes at 'tcr1272 at gmail dot com' and I can then email it to you. or if you can suggest a way for me to upload it somewhere for you.

Thanks, T.



1 point by CatDancer 5749 days ago | link

Very cool! I sent you an email, and also my email address is cat@catdancer.ws. I also added my email address to my profile here on arclanguage.org.

-----

1 point by rincewind 5749 days ago | link

how about you upload them to github? :-)

-----

1 point by CatDancer 5749 days ago | link

I'm using git and github as an experiment, wondering what the best way to share Arc patches might be. For myself, so far using git has felt like driving a tractor trailer to get a sandwich at the corner grocery store... big, powerful, can move an awesome amount of stuff, but clumsy... necessary when you have tens of thousands of lines of code, but when your language is high enough level that you don't need that many lines of code, is git actually useful? I don't know yet. In any case, I'm happy to get patches in any form that is convenient for the sender, whether by email, pastebin, or by github's "pull request" mechanism.

-----