companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.12 released: https://ocaml.org/releases/4.12.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
favonia has quit [Ping timeout: 255 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 255 seconds]
favonia has joined #ocaml
adinf has quit [Ping timeout: 255 seconds]
adinf has joined #ocaml
waleee has quit [Ping timeout: 256 seconds]
Serpent7776 has quit [Read error: Connection reset by peer]
eight has quit [Quit: leaving]
Serpent7776 has joined #ocaml
favonia has quit [Ping timeout: 255 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 256 seconds]
favonia has joined #ocaml
mbuf has joined #ocaml
zebrag has quit [Remote host closed the connection]
adinf has quit [Ping timeout: 255 seconds]
mro has joined #ocaml
mro has quit [Ping timeout: 268 seconds]
gravicappa has joined #ocaml
dhil has joined #ocaml
sagax has joined #ocaml
Haudegen has joined #ocaml
<d_bot> <sarna> hey I'm trying to parse some ini files. I found `ocaml-inifiles` on opam, but where's the source/documentation for it?
<d_bot> <sarna> all the links I found were dead ends
glassofethanol has joined #ocaml
mbuf has quit [Quit: Leaving]
Tuplanolla has joined #ocaml
olle has joined #ocaml
<d_bot> <sarna> found the source - from 2004, LGPL, uses classes
<Armael> ye I've also wondered before why there's no good library for ini files
<d_bot> <andreypopp> probably some toml parser could be adapted to parse ini?
<d_bot> <andreypopp> "loose mode" toml
rwmjones|afk is now known as rwmjones
<d_bot> <sarna> Armael: especially when it should be fairly easy to write when you know stuff like menhir (I don't)
<d_bot> <sarna> wouldn't it be easier to just write an ini parser?
<d_bot> <sarna> ini compatibility was explicitly rejected https://github.com/toml-lang/toml/issues/411
<d_bot> <andreypopp> maybe, I'm not a fan of either but my understanding was that TOML is a "specified INI" with extra complexity on top
mro has joined #ocaml
mro has quit [Ping timeout: 255 seconds]
olle has quit [Remote host closed the connection]
olle has joined #ocaml
bartholin has joined #ocaml
<d_bot> <sarna> I liked TOML until I tried actually using it haha
<d_bot> <sarna> do you have a preference? I'm curious
<d_bot> <andreypopp> For user-specified config files?
<d_bot> <andreypopp>
<d_bot> <andreypopp> Something with jsonschema support (editors can provide diagnostics and completion based on it) — json with relaxed syntax (comments, allowed, trailing commas), strict subset of YAML.
<d_bot> <sarna> ah, but then editor support is meh
<d_bot> <sarna> (I mean when you use json with relaxed syntax)
<d_bot> <sarna> unless I'm missing something?
Haudegen has quit [Quit: Bin weg.]
<d_bot> <andreypopp> I think vscode is fine with that (and this is probably the only popular editor which supports jsonschema validation out of the box)... so it depends on what audience you are targeting... yaml is also fine I think (especially if you stay with some strict subset)
reynir has quit [Quit: WeeChat 2.3]
adinf has joined #ocaml
adinf has quit [Client Quit]
Haudegen has joined #ocaml
mro has joined #ocaml
<companion_cube> @andreypopp you mean json5
waleee has joined #ocaml
mro has quit [Ping timeout: 245 seconds]
<d_bot> <andreypopp> @companion_cube I think there are multiple "dialects" of that thing, I think vscode calls it jsonc (json with comments)
<companion_cube> vscode does its own thing as always
<companion_cube> https://json5.org/
<companion_cube> at least that one is a bit more fleshed out imho
zebrag has joined #ocaml
<d_bot> <Christophe> oh god yes trailing comma
<companion_cube> yes please
olle has quit [Ping timeout: 252 seconds]
<dmbaturin> companion_cube: Out of curiosity, what's good about trailing commas? I'm not against them, I just wonder what use cases are made easier.
<companion_cube> dmbaturin: editing the godamn file :D
glassofethanol has quit [Quit: leaving]
<companion_cube> just put a comma after each field
<companion_cube> so you can delete/add them easily
<companion_cube> or shuffle them
<companion_cube> same with OCaml btw.
hannes has quit [Quit: leaving]
Haudegen has quit [Quit: Bin weg.]
hannes has joined #ocaml
<d_bot> <leviroth> It also makes for nicer diffs
mro has joined #ocaml
mro has quit [Ping timeout: 255 seconds]
olle has joined #ocaml
bartholin has quit [Quit: Leaving]
Haudegen has joined #ocaml
favonia has quit [Ping timeout: 255 seconds]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
favonia has joined #ocaml
olle has quit [Ping timeout: 265 seconds]
favonia has quit [Ping timeout: 240 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 252 seconds]
favonia has joined #ocaml
dhil has quit [Remote host closed the connection]
Techcable has quit [Quit: ZNC - https://znc.in]
Techcable has joined #ocaml
favonia has quit [Ping timeout: 256 seconds]
favonia has joined #ocaml
cedric has joined #ocaml
favonia has quit [Ping timeout: 255 seconds]
favonia has joined #ocaml
Stumpfenstiel has joined #ocaml
favonia has quit [Ping timeout: 240 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 245 seconds]
favonia has joined #ocaml
gravicappa has quit [Ping timeout: 258 seconds]
favonia has quit [Ping timeout: 256 seconds]
favonia has joined #ocaml
zebrag has quit [Ping timeout: 268 seconds]
oriba has joined #ocaml
favonia has quit [Ping timeout: 255 seconds]
favonia has joined #ocaml
waleee has quit [Ping timeout: 252 seconds]
waleee has joined #ocaml
oriba has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Stumpfenstiel has quit [Ping timeout: 268 seconds]
Tuplanolla has quit [Quit: Leaving.]
zebrag has joined #ocaml
cedric has quit [Quit: Konversation terminated!]
Haudegen has quit [Ping timeout: 258 seconds]
hackinghorn has quit [Remote host closed the connection]
hackinghorn has joined #ocaml
terrorjack has quit [Quit: Ping timeout (120 seconds)]
ralu has quit [Quit: Ping timeout (120 seconds)]
ralu has joined #ocaml
hexology has quit [Quit: hex on you ...]
hexology has joined #ocaml
terrorjack has joined #ocaml
favonia has quit [Ping timeout: 245 seconds]
favonia has joined #ocaml
ski has quit [Ping timeout: 268 seconds]
ski has joined #ocaml