A Google-search doesn't reveal any Delphi/Pascal implementation of a TOML (Tom's Obvious, Minimal Language, which's been widely in use for human-friendly configuration in recent years) library, am I missing something?

A Google-search doesn't reveal any Delphi/Pascal implementation of a TOML (Tom's Obvious, Minimal Language, which's been widely in use for human-friendly configuration in recent years) library, am I missing something?
https://github.com/toml-lang/toml

Comments

  1. What benefit does TOML give over JSON? I saw sections / headings, and it enforced line breaks. But well-formatted JSON is readable for a config file.

    ReplyDelete
  2. probably because: Be warned, this spec is still changing a lot. Until it's marked as 1.0, you should assume that it is unstable and act accordingly.

    BTW it's a kind a IniFile without it's simplicity and without the structure of a JSON file...don't sure I'll use it anyway.

    ReplyDelete
  3. The content examples list one case vs JSON, tbh toml does not look much more human-readable, and the double-bracket examples look quite worse.

    Choice of RFC3339 over ISO-8601 is also is not very human friendly.

    ReplyDelete
  4. I do not really see a benefit over ini files and json to be honest. And as was indicated already, this is unstable tech and i would like to see this mature first and if it is still around then, i will think about using it. Not before. I would really hate to get into an environment that embraces the 'tech du jour'. Might as well become a open sore front end coder then.

    ReplyDelete
  5. I agree with both Paul and Eric's comments. Actually I would prefer JSON for it's simple syntax and flexibility. But since it's quite popular, it's worth posting and asking it here :)

    ReplyDelete
  6. YAML is the most mainstream option for ultra human readable files

    ReplyDelete
  7. TOML seems good idea from the start (Take .ini file-design, standardize it and add few features.)

    It seems to me just over engineered. Ini-file would anyways be good starting point, because at least in windows world is widely known. And it is quite sufficient for many situations.

    Not sure is there .ini file classes for delphi that would keep Comments while saving, that would be quite valuable (if I recall meminifile will remove 'em, but have not used those classes in such usage that would load the file and save it back again, as whole)

    ReplyDelete
  8. Tommi Prami agreed, INI file is probably the most common human-readable file by far, and not just in the Windows world, it is also a regular encounter in Linux.

    When something no longer fits in an INI file, chances are it will not really be a human-palatable without a dedicated UI, regardless of the syntax.

    ReplyDelete

Post a Comment