adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.1 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
eskatrem` has left #ocaml [#ocaml]
eskatrem has joined #ocaml
ziyourenxiang has joined #ocaml
JimmyRcom has quit [Ping timeout: 250 seconds]
JimmyRcom has joined #ocaml
silver has quit [Read error: Connection reset by peer]
DomTorr_ has joined #ocaml
DomTorr has quit [Ping timeout: 255 seconds]
mfp has quit [Ping timeout: 246 seconds]
gaze__ has quit [Read error: Connection reset by peer]
gaze___ has joined #ocaml
jao has quit [Ping timeout: 250 seconds]
gravicappa has joined #ocaml
AtumT has quit [Quit: AtumT]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
bramford has quit [Remote host closed the connection]
ale64bit has joined #ocaml
eskatrem has quit [Read error: Connection reset by peer]
ale64bit has quit [Ping timeout: 246 seconds]
oni-on-ion has joined #ocaml
oni-on-ion has quit [Remote host closed the connection]
al-damiri has quit [Quit: Connection closed for inactivity]
kakadu has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
ggole has joined #ocaml
Birdface has joined #ocaml
kalio has quit [Ping timeout: 246 seconds]
Serpent7776 has joined #ocaml
kalio has joined #ocaml
pierpal has quit [Ping timeout: 268 seconds]
mfp has joined #ocaml
dhil has joined #ocaml
zolk3ri has joined #ocaml
Serpent7776 has quit [Read error: Connection reset by peer]
Serpent7776 has joined #ocaml
silver has joined #ocaml
_whitelogger has joined #ocaml
Haudegen has joined #ocaml
tizoc has quit [Quit: Coyote finally caught me]
tizoc has joined #ocaml
jao has joined #ocaml
jao is now known as Guest3131
dhil has quit [Ping timeout: 245 seconds]
aciniglio has joined #ocaml
eskatrem has joined #ocaml
aciniglio has quit [Remote host closed the connection]
wilfredh has joined #ocaml
dhil has joined #ocaml
jack5638 has quit [Ping timeout: 268 seconds]
jack5638 has joined #ocaml
weird_error has quit [Quit: weird_error]
ale64bit has joined #ocaml
ale64bit has quit [Ping timeout: 244 seconds]
ygrek has joined #ocaml
ygrek has quit [Ping timeout: 246 seconds]
ale64bit has joined #ocaml
gareppa has joined #ocaml
ale64bit has quit [Ping timeout: 250 seconds]
aciniglio has joined #ocaml
dhil has quit [Ping timeout: 245 seconds]
Serpent7776 has quit [Quit: leaving]
eskatrem has quit [Read error: Connection reset by peer]
dhil has joined #ocaml
sagax has joined #ocaml
ziyourenxiang has quit [Ping timeout: 246 seconds]
al-damiri has joined #ocaml
aciniglio has quit [Ping timeout: 250 seconds]
<wilfredh> I spent a while today debugging an issue where `==` was being used to compare tuples, and it sometimes worked, but sometimes didn't
<wilfredh> is there any way I can ban this or get a warning for it? AFAICS you'd never want == with tuples (I had an `int * string`)
<lyxia> I'm sure there is a better solution, but one way would be to shadow (==) to something useless.
<wilfredh> that's an interesting idea. I guess I'd need to do it in every file though.
<wilfredh> I suspect the reason == sometimes failed on tuples is that GC had been triggered, but I'm totally speculating here.
tane has joined #ocaml
<octachron> You should never use "==" on immutable values (except for drastic optimisation and only if you know the compiler internals).
dhil has quit [Ping timeout: 246 seconds]
dhil has joined #ocaml
dhil has quit [Ping timeout: 258 seconds]
oni-on-ion has joined #ocaml
ggole has quit [Quit: Leaving]
spew has joined #ocaml
Haudegen has quit [Remote host closed the connection]
Haudegen has joined #ocaml
gareppa has quit [Quit: Leaving]
Haudegen has quit [Remote host closed the connection]
richi235 has quit [Ping timeout: 258 seconds]
Haudegen has joined #ocaml
<Leonidas> wilfredh: Core/Base does that.
<companion_cube> containers, too, if you open it
<companion_cube> (it's kind of opinionated though)
gravicappa has quit [Ping timeout: 246 seconds]
<Leonidas> (I think one redefines it to == on ints, the other to `You_probably_dont_want_this or so, don't remember)
<companion_cube> `Consider_using_CCEqual_physical
<companion_cube> :D
<companion_cube> (or `Stdlib.(==)` in practice)
<Leonidas> It sure is opinionated but I'd rather have this than odd issues down the line
<companion_cube> if you have contributors not used to OCaml, that makes sense, yes
<Leonidas> People coming from JS also know that (==) is not to be trusted :D
<companion_cube> :DDD
<companion_cube> right
<companion_cube> let (===) = (==);; let (==) = [`Nope_please_don't]
richi235 has joined #ocaml
sodastab has quit [Quit: ZNC - https://znc.in]
sodastab has joined #ocaml
sodastab has quit [Excess Flood]
sodastab has joined #ocaml
err0ne has quit [Ping timeout: 268 seconds]
zolk3ri has quit [Remote host closed the connection]
AtumT has joined #ocaml
pierpal has joined #ocaml
ale64bit has joined #ocaml
spew has quit [Quit: going home]
Birdface has quit [Ping timeout: 240 seconds]
ale64bit has quit [Ping timeout: 245 seconds]
AnAverageHuman has joined #ocaml
tane has quit [Quit: Leaving]
Bikal has joined #ocaml
Bikal has quit [Client Quit]
Haudegen has quit [Remote host closed the connection]
richi235 has quit [Remote host closed the connection]
richi235 has joined #ocaml
AnAverageHuman has quit [Ping timeout: 256 seconds]
JimmyRcom has quit [Ping timeout: 255 seconds]
kakadu has quit [Remote host closed the connection]
weird_error has joined #ocaml
JimmyRcom has joined #ocaml
JimmyRcom has quit [Remote host closed the connection]
ziyourenxiang has joined #ocaml