<discocaml>
<limp.biskit> erratique seems to have something for everything
<discocaml>
<dra27.> 🙂
<discocaml>
<pigeon.v> yah, you can only trim whitespace and split on a single ASCII character...
<discocaml>
<pigeon.v> yeah, you can only trim whitespace and split on a single ASCII character...
<discocaml>
<limp.biskit> too many operations need you to perform math against length for simple things
<companion_cube>
splitting on more chars is indeed annoying
<discocaml>
<limp.biskit> e.g dropping a prefix
<companion_cube>
I mean, it all boils down to having substring search
<discocaml>
<limp.biskit> do you know if theres a way in astring to drop a prefix if matched? e.g. with prefix "abc": "abcdef" becomes "def" but "foobar" is unchanged
<discocaml>
<limp.biskit> one line
<discocaml>
<smondet> (Base has `String.chop_prefix_if_exists`)
<discocaml>
<limp.biskit> yeah, but base is heavy :/
ansiwen has quit [Ping timeout: 260 seconds]
ansiwen has joined #ocaml
<discocaml>
<limp.biskit> which is a shame because i do really love their string api
<discocaml>
<ozzieshazam> Hi! I'm trying to get vscode integration with ocaml. I am using the [Core.Command] module and `$dune build` works fine but my ocamlformat fails due to using the custom ppx in it
hannes has quit [Remote host closed the connection]
mbuf has quit [Quit: Leaving]
gooby323 has joined #ocaml
hannes has joined #ocaml
gooby323 has quit [Ping timeout: 264 seconds]
waleee has joined #ocaml
<discocaml>
<limp.biskit> rewrote and functorized my very wip web framework
<discocaml>
<limp.biskit> best feeling hello world ever
<discocaml>
<limp.biskit> works on httpaf-eio currently, going to port to httpcats
m5zs7k has quit [Ping timeout: 268 seconds]
m5zs7k has joined #ocaml
Serpent7776 has quit [Ping timeout: 240 seconds]
troydm has joined #ocaml
jabuxas has joined #ocaml
<discocaml>
<johnkraiven> can anyone here redirect me to the place within the documentation where the `?`, operator I shall assume, as seen in this snippet is described
<discocaml>
<johnkraiven> ```ocaml
<discocaml>
<johnkraiven> let render ?(syntax_highlighting = false) doc =
<discocaml>
<johnkraiven> ```
<discocaml>
<limp.biskit> it's an optional labeled argument
<discocaml>
<limp.biskit> there it will be false unless you pass `~syntax_highlighting:true`, without a default it would be an option thats None if no value is provided
<discocaml>
<johnkraiven> got it, thanks a lot @limp.biskit for your time and expertise
bartholin has quit [Quit: Leaving]
<discocaml>
<acheac> is there a way to save the expression as a parameter?
<discocaml>
<._null._> What do you mean?
jabuxas has quit [Quit: oops :p]
<discocaml>
<acheac> i have a homework which is implemeting a method for tree