inkbottle has quit [Quit: Konversation terminated!]
inkbottle has joined #ocaml
mbuf has joined #ocaml
mxns has joined #ocaml
mfp has quit [Ping timeout: 265 seconds]
tizoc has quit [Quit: Coyote finally caught me]
tizoc has joined #ocaml
inkbottle has quit [Quit: Konversation terminated!]
inkbottle has joined #ocaml
vodkaInferno has quit [Read error: Connection reset by peer]
vodkaInferno has joined #ocaml
shmibs has quit [Quit: leaving =o]
<d_bot_>
<froyo> @Zach5050 glad you fixed the problem. a little bit of bikeshedding I hope you excuse it:
<d_bot_>
<froyo> - you don't need `let () = ...` next to every unit-producing function, semicolons allow you to do it once. `let () = ignore 1; ignore 2; ignore 3; ...`
<d_bot_>
<froyo> My style is a bit cursed but it aids line-editing -- you don't have to worry about removing the last semicolon or treating the first line in a special way, feel free to help me anger/intrigue more ocamlers with it:
<d_bot_>
<froyo> ```
<d_bot_>
<froyo> let () = ()
<d_bot_>
<froyo> ; ignore 1
<d_bot_>
<froyo> ; ignore 2
<d_bot_>
<froyo> ; ignore 3
<d_bot_>
<froyo> ; ...
<d_bot_>
<froyo> ```
<d_bot_>
<froyo> - `raise (Failure s)` has a name: `failwith s`, impossible match cases are by-convention denoted with `assert false` though.
<d_bot_>
<froyo> - since you repeat `print_endline (string_of_expr ...)` a lot, this is a good indicator of a function composition: `let print_expr e = print_endline (string_of_expr e)`, now you don't need to type/copypaste so much and you don't need extra parens.. and you get a refactor for free -- in case you needed to edit your composition to introduce something new, you do it only in one spot.
<d_bot_>
<froyo> - Constructors that take 1 value don't need parens: `Num(tmp1)` becomes `Num tmp1`
<d_bot_>
<froyo> - Similarly the parens here `...^ string_of_expr(exp1) ^...` are completely useless and don't change precedence. You can do it without any, but if you want to be extra sure about precedence you can do `...^ (string_of_expr exp1) ^...` .. though it's completely unnecessary here. parens in ocaml are more lisp-like than c-like.
<d_bot_>
<froyo> - Finally, you seem to be running into many "impossible case" matches and this is an indicator that either your function logic (string_of_expr..), your data model (the type Num|Mult|... belong to), or your choice of tool (ADT vs GADTs or Plymorphic Variants) needs some reconsideration.
shmibs has joined #ocaml
arecaceae has quit [Remote host closed the connection]
arecaceae has joined #ocaml
inkbottle has quit [Quit: Konversation terminated!]
inkbottle has joined #ocaml
inkbottle has quit [Quit: Konversation terminated!]
mxns has quit [Ping timeout: 260 seconds]
mxns has joined #ocaml
arecaceae has quit [Remote host closed the connection]
narimiran has joined #ocaml
arecaceae has joined #ocaml
mmohammadi9812 has quit [Quit: Quit]
mxns has quit [Ping timeout: 246 seconds]
mxns has joined #ocaml
<d_bot_>
<Zach5050> Thank you! @HYPHEN
waleee-cl has quit [Quit: Connection closed for inactivity]
mxns has quit [Ping timeout: 260 seconds]
Serpent7776 has joined #ocaml
<d_bot_>
<froyo> no probs ^^
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
decentpenguin has quit [Read error: Connection reset by peer]
decentpenguin has joined #ocaml
mxns has joined #ocaml
vicfred has quit [Quit: Leaving]
Haudegen has joined #ocaml
mxns has quit [Ping timeout: 256 seconds]
olle has joined #ocaml
olle has quit [Ping timeout: 246 seconds]
<steenuil>
that's cursed alrighta
hosewiejacke has joined #ocaml
neiluj has quit [Ping timeout: 265 seconds]
neiluj has joined #ocaml
olle has joined #ocaml
bartholin has joined #ocaml
motherfsck has quit [Read error: Connection reset by peer]
mxns has joined #ocaml
mxns has quit [Ping timeout: 264 seconds]
motherfsck has joined #ocaml
aspiwack[m] has quit [Quit: Bridge terminating on SIGTERM]
smondet[m] has quit [Quit: Bridge terminating on SIGTERM]
dash has quit [Quit: Bridge terminating on SIGTERM]
slt[m] has quit [Quit: Bridge terminating on SIGTERM]
labor[m] has quit [Quit: Bridge terminating on SIGTERM]
pqwy[m] has quit [Quit: Bridge terminating on SIGTERM]
flux has quit [Quit: Bridge terminating on SIGTERM]
jimt[m] has quit [Quit: Bridge terminating on SIGTERM]
BitPuffin has quit [Quit: Bridge terminating on SIGTERM]
stites[m] has quit [Quit: Bridge terminating on SIGTERM]
peddie has quit [Quit: Bridge terminating on SIGTERM]
avsm[m] has quit [Quit: Bridge terminating on SIGTERM]
lnxw37d4 has quit [Quit: Bridge terminating on SIGTERM]
tjammer[m] has quit [Quit: Bridge terminating on SIGTERM]
aditi314 has quit [Quit: Bridge terminating on SIGTERM]
lnxw37d4 has joined #ocaml
indicator has joined #ocaml
aditi314 has joined #ocaml
smondet[m] has joined #ocaml
stites[m] has joined #ocaml
BitPuffin has joined #ocaml
dash has joined #ocaml
flux has joined #ocaml
aspiwack[m] has joined #ocaml
peddie has joined #ocaml
labor[m] has joined #ocaml
pqwy[m] has joined #ocaml
jimt[m] has joined #ocaml
avsm[m] has joined #ocaml
tjammer[m] has joined #ocaml
slt[m] has joined #ocaml
<indicator>
When I use syntax like "let%map_open" with Core.Command with merlin in emacs, I get "Uninterpreted extension 'map_open'." I'm using dune. I suspect maybe I haven't run the right dune command to update the .merlin files, but I'm not sure either what should be in those files for this (presumably PPX) syntax to work?
tane has joined #ocaml
mfp has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
Haudegen has quit [Quit: Bin weg.]
hosewiejacke has quit [Ping timeout: 276 seconds]
hosewiejacke has joined #ocaml
waleee-cl has joined #ocaml
ec has quit []
ec has joined #ocaml
ec has quit [Max SendQ exceeded]
ec has joined #ocaml
mxns has joined #ocaml
Haudegen has joined #ocaml
mxns has quit [Ping timeout: 246 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 265 seconds]
zebrag has joined #ocaml
hosewiejacke has quit [Ping timeout: 245 seconds]
Tuplanolla has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 256 seconds]
hosewiejacke has joined #ocaml
vicfred has joined #ocaml
indicator has quit [Remote host closed the connection]
hosewiejacke has quit [Ping timeout: 276 seconds]
Haudegen has quit [Quit: Bin weg.]
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
olle has quit [Ping timeout: 276 seconds]
inkbottle has joined #ocaml
zebrag has quit [Ping timeout: 264 seconds]
nepascourir has joined #ocaml
Haudegen has joined #ocaml
bartholin has quit [Quit: Leaving]
nepascourir has quit [Quit: Leaving]
inkbottle has quit [Quit: Konversation terminated!]
inkbottle has joined #ocaml
xandkar1 has quit [Quit: xandkar1]
xandkar1 has joined #ocaml
xandkar1 has quit [Client Quit]
xandkar1 has joined #ocaml
mxns has joined #ocaml
henistein has joined #ocaml
mxns has quit [Ping timeout: 246 seconds]
mbuf has quit [Quit: Leaving]
inkbottle has quit [Quit: Konversation terminated!]
inkbottle has joined #ocaml
olle has joined #ocaml
hosewiejacke has joined #ocaml
drewolson4 has joined #ocaml
hosewiejacke2 has joined #ocaml
TheRuralJuror has joined #ocaml
olle_ has joined #ocaml
neiluj_ has joined #ocaml
dinosaure1 has joined #ocaml
runciter_ has joined #ocaml
ahf_ has joined #ocaml
tizoc` has joined #ocaml
hosewiejacke has quit [*.net *.split]
olle has quit [*.net *.split]
Haudegen has quit [*.net *.split]
neiluj has quit [*.net *.split]
motherfsck has quit [*.net *.split]
tizoc has quit [*.net *.split]
runciter has quit [*.net *.split]
ahf has quit [*.net *.split]
emias has quit [*.net *.split]
drewolson has quit [*.net *.split]
companion_cube has quit [*.net *.split]
vsiles has quit [*.net *.split]
dinosaure has quit [*.net *.split]
drewolson4 is now known as drewolson
vsiles has joined #ocaml
dinosaure1 is now known as dinosaure
companion_cube has joined #ocaml
inkbottle is now known as zebrag
motherfsck has joined #ocaml
tizoc` is now known as tizoc
emias has joined #ocaml
hosewiejacke2 has quit [Quit: Leaving]
henistein has quit [Quit: Connection closed]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
TheRuralJuror has quit [Quit: Bin weg.]
mrallen1 has quit []
mrallen1 has joined #ocaml
olle_ has quit [Ping timeout: 260 seconds]
leah2 has quit [Ping timeout: 264 seconds]
leah2 has joined #ocaml
narimiran has quit [Ping timeout: 246 seconds]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
mxns has joined #ocaml
jmct has quit []
jmct has joined #ocaml
mxns has quit [Ping timeout: 256 seconds]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
Duns_Scrotus has quit []
Duns_Scrotus has joined #ocaml
Serpent7776 has quit [Quit: leaving]
curtosis[away] has joined #ocaml
Tuplanolla has quit [Ping timeout: 264 seconds]
tane has quit [Quit: Leaving]
shawnw has joined #ocaml
mgsk has quit []
mgsk has joined #ocaml
curtosis[away] has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]