I was demoing all the features of Rome in like a 20 minute meeting and I spent half of it talking about the JSON parser because I had just finished it and was excited
-
-
Replying to @sebmck @rickhanlonii
hahaha fair enough. It does sound like a lot of extensions to JSON, my question would be whether it’s losslessly convertible to JSON, so things like NaN/Dates aren’t? I think if you have a file format that’s 1:1 convertible to/from JSON it’ll then need no explanation.
1 reply 0 retweets 2 likes -
Replying to @glenmaddern @rickhanlonii
Going back to my original format but without the extra data types sounds like a good idea then and would fulfill those requirements. I guess I'll throw out the TOML parser I just wrote... I'll see how I'm feeling about it tomorrow lol
3 replies 0 retweets 3 likes -
I feel good about it. Rough draft, not meant for public consumption, just to detail the design. What do ya'll think? (I already built it)https://gist.github.com/sebmck/7389efa51ca015f98f170e0d6f5f49e9 …
8 replies 0 retweets 13 likes -
Replying to @sebmck @rickhanlonii
Love the spec. Not sure on the name, “son” just feels a little… short? It’s definitely an extension to JSON, not a subset? RJson could be Rome-JSON or Reworked-JSON or something. Or you could go PJson (practical/pliable/pretty) or UJson (unrestricted)?
2 replies 0 retweets 3 likes -
Replying to @glenmaddern @sebmck
Fwiw I don't like rjson, it's rome specific and doesn't roll of the tongue like at all
3 replies 0 retweets 1 like -
I just hate that now tooling will not like it. Think prettier, eslint, intellij etc. So would be nice if Rome will allow plain jane json, but for fancies rjson and you'd have to vet the tradeoffs
2 replies 0 retweets 0 likes -
Replying to @codervandal @rickhanlonii and
Everything should be cosmiconfig compatible. So micro projects that want minimal things in a package.json, should work. Or more extreme config should allow yml, json or js
1 reply 0 retweets 0 likes -
10 different way to specify configuration is terrible. I get that people like options but it’s deliberately making it more complicated with little to gain except some arbitrarily different syntax. Rome does not have any third party dependencies and so will not adopt cosmiconfig
1 reply 0 retweets 0 likes -
That's fine. Will just be nice to be consistent with other tooling - and not invent a new file extension. But then again, TypeScript did it. Suppose peeps can just generate the rjson, and use cosmiconfig to their hearts content
1 reply 0 retweets 0 likes
My hope is for their to be a GUI or CLI commands to configure the config anyway so the format shouldn’t even matter to 99% of people
-
-
I like this.
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 