Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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





Yes. 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.


Python’s built in ConfigParser has an ini like syntax and was widely used.

Fair point. It would have made sense from a python perspective also.



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: