@thor I generally use YAML unless I need something without requiring additional libraries (most runtimes support env vars)...
Tho in the cases I use it, it doesn't shit around with the machine's env vars.

@finlaydag33k @thor i think the TCL approach described by antirez in "Tcl the Misunderstood" would be nice to have in other languages, but they usually aren't flexible enough for this :)

especially for scripting languages it's kind of weird that just using the language for configuration isn't more popular.

Follow

@finlaydag33k i only started using it a few years ago. i think it's really nice for its intended purpose, glue between things and to be embedded into larger programs. it's a bit unusual in its concepts though :)

they have solved many problems other languages still have. the tk toolkit is rather decent (it doesn't look like motif anymore), one can package an application with sdx into a standalone binary, the module system isn't madness like in python or ruby. it's decently optimized. there are manpages for most tcl/tk and tcllib (a kind of extended standard library) commands.

one drawback is that the community documentation is a bit cluttered. there is wiki.tcl-lang.org where much information is available. magicsplat.com/ttpl/index.html is a good book, and there is some more content available at that domain. in the end it's still in a thousand locations, so one has to search around a bit for stuff.

i can only recommend to try tcl, if only for the interesting way of how things are done there. everything is a string ;)

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.