Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.13.0 released: https://ocaml.org/releases/4.13.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
gzj has quit [Ping timeout: 252 seconds]
waleee has quit [Ping timeout: 245 seconds]
waleee has joined #ocaml
<companion_cube> rgrinberg: would it make sense ot have a "let-destruct" action in ocaml-lsp-server?
<companion_cube> for irrefutable destruct using let
<rgrinberg> So what would that do? Take an expression and produce let expr in expr?
<companion_cube> let {x; y; z} = expr in
<companion_cube> ah yes, sorry. I use that pattern almost exclusively with records.
<companion_cube> (it's defensive, when you need to use all the fields)
<rgrinberg> Yeah, I suppose this should be the default behavior for destruct on records and on types that are only a single constructor
<rgrinberg> companion_cube make a feature request in the merlin repo. destruct is implemented there, I only wrap it in lsp
<companion_cube> đź‘Ť
jonasbits has quit [Ping timeout: 260 seconds]
nd__ has joined #ocaml
nd__ has quit [Ping timeout: 264 seconds]
Tuplanolla has quit [Quit: Leaving.]
waleee has quit [Ping timeout: 252 seconds]
waleee has joined #ocaml
hyphen has joined #ocaml
waleee has quit [Ping timeout: 264 seconds]
waleee has joined #ocaml
waleee has quit [Ping timeout: 265 seconds]
waleee has joined #ocaml
nd__ has joined #ocaml
cbarrett has quit [Ping timeout: 252 seconds]
caasih has quit [Ping timeout: 268 seconds]
nd__ has quit [Ping timeout: 252 seconds]
JSharp has quit [Ping timeout: 252 seconds]
kevinsjoberg has quit [Ping timeout: 252 seconds]
JSharp has joined #ocaml
kevinsjoberg has joined #ocaml
cbarrett has joined #ocaml
caasih has joined #ocaml
eremitah has quit [Quit: quit]
waleee has quit [Ping timeout: 252 seconds]
eremitah has joined #ocaml
waleee has joined #ocaml
waleee has quit [Ping timeout: 265 seconds]
nd__ has joined #ocaml
waleee has joined #ocaml
nd__ has quit [Ping timeout: 264 seconds]
waleee has quit [Ping timeout: 264 seconds]
waleee has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
waleee has quit [Ping timeout: 268 seconds]
_whitelogger has joined #ocaml
nd__ has joined #ocaml
nd__ has quit [Ping timeout: 245 seconds]
gravicappa has joined #ocaml
<d_bot> <Dorissa> Hello, I'm Doris an outreachy intern applicant
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wyrd has quit [Remote host closed the connection]
kurfen has joined #ocaml
xiongxin has joined #ocaml
xd1le has joined #ocaml
xiongxin has quit [Ping timeout: 265 seconds]
xiongxin_ has joined #ocaml
gravicappa has quit [Ping timeout: 265 seconds]
nd__ has joined #ocaml
nd__ has quit [Ping timeout: 265 seconds]
nd__ has joined #ocaml
nd__ has quit [Ping timeout: 252 seconds]
wonko has joined #ocaml
mbuf has joined #ocaml
Anarchos has joined #ocaml
<Anarchos> Hello
hyphen has quit [Ping timeout: 265 seconds]
nd__ has joined #ocaml
hendursa1 has joined #ocaml
hendursaga has quit [Ping timeout: 276 seconds]
Anarchos has quit [Ping timeout: 256 seconds]
Serpent7776 has joined #ocaml
wonko has quit [Ping timeout: 264 seconds]
waleee has joined #ocaml
Tuplanolla has joined #ocaml
waleee has quit [Ping timeout: 264 seconds]
waleee has joined #ocaml
waleee has quit [Ping timeout: 265 seconds]
waleee has joined #ocaml
waleee has quit [Client Quit]
waleee has joined #ocaml
hendursa1 has quit [Remote host closed the connection]
hendursa1 has joined #ocaml
bartholin has joined #ocaml
hendursa1 has quit [Remote host closed the connection]
hendursa1 has joined #ocaml
gravicappa has joined #ocaml
hendursa1 has quit [Ping timeout: 276 seconds]
hendursa1 has joined #ocaml
<d_bot> <andreypopp> hm... odig 0.7 PR to opam repo was merged 5 days ago but `opam update` doesn't surface it yet... is https://opam.ocaml.org repo cache that stale?
xiongxin_ has quit [Ping timeout: 245 seconds]
waleee has quit [Ping timeout: 264 seconds]
<d_bot> <undu> Yea, the server that updates it seems to beon it's last lef
<d_bot> <undu> I think people were looking to replace it
cedric has joined #ocaml
bartholin has quit [Ping timeout: 265 seconds]
waleee has joined #ocaml
bartholin has joined #ocaml
hyphen has joined #ocaml
nd__ has quit [Ping timeout: 268 seconds]
<d_bot> <saysayo> https://discord.gg/cFvB6mXX, you should check out the outreachy channel for more info
jess has quit [Quit: Lost terminal]
nd__ has joined #ocaml
jess has joined #ocaml
xiongxin has joined #ocaml
nd__ has quit [Ping timeout: 264 seconds]
bartholin has quit [Ping timeout: 264 seconds]
bartholin has joined #ocaml
<smondet[m]> Emacs users: do you have a setting for tuareg or caml-mode to completely disable all emacs-based indentation?
chrisz has joined #ocaml
cedric has quit [Quit: Konversation terminated!]
mro has joined #ocaml
xiongxin has quit [Read error: Connection reset by peer]
waleee has quit [Ping timeout: 252 seconds]
<d_bot> <ggole> I use ocp-indent, which doesn't use emacs' indentation machinery iirc
chrisz has quit [Quit: leaving]
waleee has joined #ocaml
nd__ has joined #ocaml
<smondet[m]> yes, and I use ocamlformat everywhere now, my question is how to get Emacs' one out of the way
waleee has quit [Ping timeout: 252 seconds]
nd__ has quit [Ping timeout: 264 seconds]
waleee has joined #ocaml
<hornhack> hi, how do I print without newline?
<d_bot> <darrenldl> Printf.printf?
<d_bot> <RegularSpatula> You mean you want to disable the indenting that happens when you hit return/enter? (Like the basic `C-j` but when you sit return?)
<Serpent7776> I've just realised polymorphic (<) magically worked for my custom record type without me realizing it. In general it could be subtly wrong though.
bartholin has quit [Ping timeout: 264 seconds]
waleee has quit [Ping timeout: 264 seconds]
bartholin has joined #ocaml
rgrinberg has joined #ocaml
nd__ has joined #ocaml
nd__ has quit [Ping timeout: 265 seconds]
waleee has joined #ocaml
waleee has quit [Ping timeout: 264 seconds]
wonko has joined #ocaml
<d_bot> <hcarty> hornhack: `print_string` is another option
<d_bot> <Bluddy> It's super important not to rely on polymorphic comparison. I think the solution adopted by Base and Containers of disabling it is probably for the best.
<d_bot> <Bluddy> You should only use polymorphic comparison explicitly when you think it's appropriate.
<hornhack> ah thx
<hornhack> you still can do Poly. to compare with Base, right?
mro has quit [Quit: Leaving...]
<d_bot> <NULL> I mean, as long as you consider your type constructors to be injective (i.e. you never identify two different values as equivalent), I don't see the issue with polymorphic comparisons
nd__ has joined #ocaml
wwilly has joined #ocaml
nd__ has quit [Ping timeout: 268 seconds]
mbuf has quit [Quit: Leaving]
xd1le has quit [Quit: xd1le]
waleee has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
<Serpent7776> I find the polymorphic behaviour rather surprising (at least for record types), because it might not do the right thing. It's just something one needs to be aware of.
mro has quit [Remote host closed the connection]
bartholin has quit [Ping timeout: 264 seconds]
jonasbits has joined #ocaml
nd__ has joined #ocaml
hendursa1 has quit [Quit: hendursa1]
hendursaga has joined #ocaml
nd__ has quit [Ping timeout: 264 seconds]
bartholin has joined #ocaml
mro has joined #ocaml
hendursaga has quit [Remote host closed the connection]
hendursaga has joined #ocaml
bartholin has quit [Ping timeout: 265 seconds]
bartholin has joined #ocaml
hendursaga has quit [Ping timeout: 276 seconds]
hendursaga has joined #ocaml
nd__ has joined #ocaml
bartholin has quit [Ping timeout: 252 seconds]
nd__ has quit [Ping timeout: 265 seconds]
<companion_cube> A good practice is to expose an equal function for your types, even it's just an alias to =
<companion_cube> This way you can change it later
bartholin has joined #ocaml
<Serpent7776> I guess I need to learn to use modules, for now I'm just writing scripts
mro has quit [Remote host closed the connection]
nd__ has joined #ocaml
nd__ has quit [Ping timeout: 252 seconds]
bartholin has quit [Ping timeout: 245 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bartholin has joined #ocaml
mro has joined #ocaml
wingsorc has joined #ocaml
gravicappa has quit [Ping timeout: 264 seconds]
mro has quit [Read error: Connection reset by peer]
mro_ has joined #ocaml
<d_bot> <andreypopp> I've used menhir for parsing but never used it with error recovery and hence the question — how good is it vs GLR based parsers (tree sitter, lezer)? Considering the case I want to implement LSP (completion, go to def) which should work on invalid/incomplete sources. I know ocamllsp relies on merlin which uses OCaml grammar (which I think is defined used menhir now) but not sure how much work is done specific to OCaml to hav
mro has joined #ocaml
mro_ has quit [Ping timeout: 245 seconds]
mro has quit [Quit: Leaving...]
nd__ has joined #ocaml
nd__ has quit [Ping timeout: 264 seconds]
wyrd has joined #ocaml
rgrinberg has joined #ocaml
nd__ has joined #ocaml
salkin has joined #ocaml
bartholin has quit [Ping timeout: 264 seconds]
bartholin has joined #ocaml
wyrd has quit [Ping timeout: 276 seconds]
bartholin has quit [Quit: Leaving]
wonko has quit [Ping timeout: 268 seconds]
Serpent7776 has quit [Quit: leaving]
salkin has quit [Ping timeout: 252 seconds]
wyrd has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hornhack> hi, I have a question about menhir
<hornhack> I just want to parse a file into a list of words
Tuplanolla has quit [Quit: Leaving.]
<hornhack> is this correct?
<hornhack> file : | {[]} | f = file; w = word {w::f};
<hornhack> menhir wants me symbol file is never accepted
<hornhack> warns*
<hornhack> hmm it doesnt warn that anymore
<hornhack> something I have to do with lexer
<hornhack> now it just runs forever