[Nix-dev] NixON initiative
Anand Patil
anand.prabhakar.patil at gmail.com
Sun Feb 28 17:43:22 CET 2016
You could interpret {path: "/a/b/c"} as a path literal.
On Sun, Feb 28, 2016, 11:06 AM zimbatm <zimbatm at zimbatm.com> wrote:
> But we wouldn’t have the path type in JSON anymore ! Hmm maybe that’s a
> good thing actually :p
>
> importJSON = path: builtins.fromJSON (builtins.readFile path);
>
>
>
> On Sun, 28 Feb 2016 at 15:37 jeaye <contact at jeaye.com> wrote:
>
>> On Sun, Feb 28, 2016 at 03:11:15PM +0000, Anand Patil wrote:
>> > What about using some kind of JSON notation for this? There are some
>> > mismatches between JSON and Nix primitives; but on the other hand JSON
>> is
>> > easy to parse and generate from every language, and many people are
>> > familiar with it.
>>
>> I wholeheartedly concur; please don't make another JSON-like format.
>> JSON is so well supported in so many languages and, I believe, it does
>> everything we'd need.
>>
> _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160228/b37879f3/attachment.html
More information about the nix-dev
mailing list