File: ini.md

package info (click to toggle)
python-strictyaml 1.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,708 kB
  • sloc: python: 12,836; sh: 48; makefile: 3
file content (15 lines) | stat: -rw-r--r-- 679 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
title: Why not use INI files?
---

INI is a very old and quite readable configuration format for small configuration files.
It is still used by many programs today and it has some advantages due to this - e.g.
python has inbuilt parser for it.

Unfortunately it suffers from two major problems:

- Different parsers will operate in subtly different ways that can lead to often obscure edge case bugs regarding the way whitespace is used, case sensitivity, comments and escape characters.
- It doesn't let you represent hierarchical data.

[TOML](../toml) is a configuration format designed to address these two concerns,
although it also suffers from obscure edge case bugs.