5 ms·
Isn't that itself just a variation on the ini syntax, sort of made concrete by PHP, itself adapted from DOS? https://www.php.net/parse_ini_file https://www.php.
by awwright 1y ago
Isn't that itself just a variation on the ini syntax, sort of made concrete by PHP, itself adapted from DOS?
https://www.php.net/parse_ini_file https://www.php.net/parse_ini_file
- alganet 1y agoYes. I think this also supports my case. For me, it was obvious to use `parse_ini_file` because it greatly improved performance (I didn't had to parse it by hand) and familiarity (PHP users already know ini). On the other hand, there is no reason for toml to have chosen ini. Almost no other language had efficient ini parsers at the time, or any culture related to ini files whatsoever. It sounds like a strange choice outside the PHP context.
- laurencerowe 1y agoPython’s built in ConfigParser has an ini like syntax and was widely used.
- alganet 1y agoFair point. It would have made sense from a python perspective also.