<dh`>
also, if you plan to have sources in another dir and objects here, ocamldep requires -I $(SRCDIR) that is not correct to pass to ocamlopt, or it silently generates incorrect output
<companion_cube>
I mean, just use dune and all that goes awayt
<companion_cube>
-t
spip has quit [Quit: Konversation terminated!]
John_Ivan_ has joined #ocaml
John_Ivan has quit [Ping timeout: 250 seconds]
deadmarshal_ has quit [Ping timeout: 250 seconds]
chrisz has quit [Ping timeout: 268 seconds]
chrisz has joined #ocaml
amk has quit [Ping timeout: 240 seconds]
amk has joined #ocaml
waleee has quit [Ping timeout: 256 seconds]
motherfs1 has joined #ocaml
deadmarshal_ has joined #ocaml
deadmarshal_ has quit [Ping timeout: 250 seconds]
Haudegen has joined #ocaml
m5zs7k has quit [Ping timeout: 250 seconds]
m5zs7k has joined #ocaml
motherfsck has quit [Quit: quit]
bgs has joined #ocaml
deadmarshal_ has joined #ocaml
bartholin has joined #ocaml
bgs has quit [Remote host closed the connection]
dhil has joined #ocaml
perrierjouet has quit [Ping timeout: 240 seconds]
perrierjouet has joined #ocaml
spip has joined #ocaml
CalimeroTeknik has quit [Ping timeout: 240 seconds]
midgard has quit [Ping timeout: 240 seconds]
m5zs7k has quit [Ping timeout: 240 seconds]
m5zs7k has joined #ocaml
midgard has joined #ocaml
CalimeroTeknik has joined #ocaml
midgard has quit [Ping timeout: 265 seconds]
CalimeroTeknik has quit [Ping timeout: 265 seconds]
waleee has joined #ocaml
olle has joined #ocaml
midgard has joined #ocaml
CalimeroTeknik has joined #ocaml
John_Ivan__ has joined #ocaml
John_Ivan_ has quit [Ping timeout: 246 seconds]
waleee has quit [Ping timeout: 240 seconds]
John_Ivan_ has joined #ocaml
John_Ivan_ has quit [Remote host closed the connection]
John_Ivan_ has joined #ocaml
John_Ivan__ has quit [Ping timeout: 240 seconds]
random-jellyfish has joined #ocaml
deadmarshal_ has quit [Ping timeout: 256 seconds]
bartholin has quit [Quit: Leaving]
rh has joined #ocaml
rh has left #ocaml [#ocaml]
deadmarshal_ has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
John_Ivan_ has quit [Read error: Connection reset by peer]
John_Ivan has joined #ocaml
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ocaml
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ocaml
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ocaml
John_Ivan has quit [Remote host closed the connection]
Haudegen has joined #ocaml
John_Ivan has joined #ocaml
John_Ivan has quit [Max SendQ exceeded]
John_Ivan has joined #ocaml
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ocaml
<discocaml>
<sarna> how to properly declare & export an exception? right now I have `exception My_error of string` *both* in my .ml and .mli file, is that correct?
<discocaml>
<darrenldl> think so iirc
random-jellyfish has quit [Quit: Client closed]
John_Ivan has quit [Ping timeout: 265 seconds]
random-jellyfish has joined #ocaml
random-jellyfish has quit [Quit: Client closed]
motherfs1 is now known as motherfsck
Haudegen has quit [Quit: Bin weg.]
John_Ivan has joined #ocaml
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ocaml
cedb has joined #ocaml
Haudegen has joined #ocaml
bartholin has joined #ocaml
wingsorc has joined #ocaml
rh has joined #ocaml
waleee has joined #ocaml
wingsorc has quit [Remote host closed the connection]
wingsorc has joined #ocaml
sparogy has quit [Read error: Connection reset by peer]
JSharp has quit [Ping timeout: 256 seconds]
delyan has quit [Ping timeout: 256 seconds]
sparogy has joined #ocaml
octachron has quit [Remote host closed the connection]
octachron has joined #ocaml
delyan has joined #ocaml
JSharp has joined #ocaml
szkl has quit [Quit: Connection closed for inactivity]
cedb has quit [Quit: WeeChat 3.8]
ced2 has joined #ocaml
ced2 is now known as cedb
<discocaml>
<sarna> I have a function that processes a custom exception (let's say this `exception My_error of string`). is the only option for the argument to be of type `exn`? can't it be the type I defined (`My_error`)?
<discocaml>
<sarna> and then I have the issue with matching on it - I need to `match` on all exceptions, and add the stinky `_ -> failwith "programmer error"` case
<discocaml>
<octachron> `My_error` is a variant constructor, not a type. You should nearly never match on all exceptions, it is generally a sign of design flaw.
<discocaml>
<sarna> to be clear, I want to process the *value* of the exception. my code is like `try run_something () with My_error _ as e -> process_my_error e`
<discocaml>
<sarna> the problem is in `process_my_error`
<discocaml>
<sarna> actually I could solve this by inlining the body of `process_my_error` in the `match` of `try`.. but is there a better solution?
<discocaml>
<octachron> No you should bind the argument of your error in the match `My_error arg -> process_my_error arg`.
<discocaml>
<sarna> ah, so `process_my_error` would process the insides, and I would shed the tag before? smart! I didn't think of that
<discocaml>
<sarna> thank you!
czy has quit [Remote host closed the connection]
rh has left #ocaml [#ocaml]
Tuplanolla has joined #ocaml
czy has joined #ocaml
trubi has joined #ocaml
hannes_ has joined #ocaml
hannes has quit [Read error: Connection reset by peer]
amk has quit [Ping timeout: 240 seconds]
amk has joined #ocaml
trubi has quit [Read error: Connection reset by peer]
trubi` has joined #ocaml
dhil has quit [Ping timeout: 265 seconds]
olle has quit [Remote host closed the connection]
ns12 has quit [Quit: Ping timeout (120 seconds)]
ns12 has joined #ocaml
remexre has joined #ocaml
shinjipf4 has joined #ocaml
ns12 has quit [Read error: Connection reset by peer]
czy has quit [Remote host closed the connection]
ns12 has joined #ocaml
czy has joined #ocaml
shinjipf has quit [Read error: Connection reset by peer]
shinjipf4 is now known as shinjipf
Haudegen has quit [Ping timeout: 268 seconds]
Tuplanolla has quit [Quit: Leaving.]
<discocaml>
<cog1tar3> I am trying to gather some statistics regarding what functional languages yield the most job opportunities and the highest paying opportunities