<Fardale>
What do you mean? What do you call an operator?
<technomancy>
this is kinda tacky: List.filter (fun y -> x <> y) t
<technomancy>
in a lisp I'd do the equivalent of: List.filter (<> x) t
<discocaml_>
<NULL> Did you not see my messages an hour ago ?
Guest4 has joined #ocaml
<discocaml_>
<NULL> Is the bridge down this way ?
<discocaml_>
<NULL> No it's not
Guest4 has quit [Client Quit]
<Fardale>
technomancy: List.filter ((<> x) t? As mention earlier by NULL on discord.
<discocaml_>
<NULL> You're missing a closing parenthesis
<Fardale>
List.filter ((<>) x) t (missing a parenthesis)
<technomancy>
oh cool; thanks; that makes sense. so you're kind of function-izing the operator by wrapping it like that?
<companion_cube>
Yep
<technomancy>
https://p.hagelb.org/mire.ml.html I think there's still a few things to clean up that are awkward, but I got my socket MUD demo program working pretty well
<technomancy>
173 lines vs 100 lines in the reference implementation in Fennel, but that's not bad considering the socket interface is lower level, plus type safety is great
<technomancy>
thanks for putting up with my questions
<discocaml_>
<NULL> You are still using a few `!=`, `fun {fd = fd} -> ..` can be rewritten as `fun {fd} -> ..`
cjohnson has joined #ocaml
<companion_cube>
I wonder how close to a repl experience, ia using dune exec -w
Stumpfenstiel has quit [Ping timeout: 252 seconds]
cjohnson has quit [Ping timeout: 248 seconds]
<technomancy>
I understand why it's often not feasible but I do love working with compilers you can just bring in from apt and use directly
<technomancy>
especially when you're learning the language; learning a whole new build toolchain along with the language is rough
<technomancy>
when I first started with ocaml in 2011 the tooling was completely bewildering; like ... the explanations were all written for people who were experts already
<technomancy>
I guess dune is probably a lot better than that but I got burned badly in the past and wanted to avoid that this time around
<discocaml_>
<darrenldl> got burned badly in what way?
oriba has joined #ocaml
Haudegen has quit [Ping timeout: 252 seconds]
oriba has quit [Ping timeout: 246 seconds]
random-jellyfish has quit [Quit: Client closed]
oriba has joined #ocaml
waleee has quit [Ping timeout: 246 seconds]
bobo_ has quit [Read error: Connection reset by peer]
<discocaml_>
<geoff> I've been using similar to `dune exec -w` for time time now by creating my own rules to run the exes and running in watch mode. Pretty nice to not necessarily have to do the extra setup now.