<ns12>
Another question: Is there a naming convention for impure functions in OCaml, similar to the use of "!" in Scheme?
<d_bot>
<NULL> Not that I know of
xiongxin1 has joined #ocaml
xiongxin has quit [Ping timeout: 240 seconds]
xiongxin1 is now known as xiongxin
rgrinberg has joined #ocaml
hackinghorn has joined #ocaml
gravicappa has joined #ocaml
xiongxin has quit [Ping timeout: 250 seconds]
xiongxin has joined #ocaml
Techcable has quit [Ping timeout: 240 seconds]
shawnw has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pieguy128_ has quit [Ping timeout: 240 seconds]
pieguy128 has joined #ocaml
epony has quit [Quit: QUIT]
epony has joined #ocaml
Techcable has joined #ocaml
Techcable has quit [Remote host closed the connection]
Techcable has joined #ocaml
bartholin has joined #ocaml
xiongxin1 has joined #ocaml
xiongxin has quit [Ping timeout: 240 seconds]
xiongxin1 is now known as xiongxin
kaph has quit [Read error: Connection reset by peer]
pieguy128 has quit [Ping timeout: 240 seconds]
pieguy128 has joined #ocaml
pieguy128 has quit [Ping timeout: 250 seconds]
pieguy128 has joined #ocaml
emad has quit [Ping timeout: 256 seconds]
mro has joined #ocaml
Serpent7776 has joined #ocaml
mro has quit [Remote host closed the connection]
pieguy128 has quit [Ping timeout: 250 seconds]
bartholin has quit [Ping timeout: 240 seconds]
mro has joined #ocaml
xiongxin1 has joined #ocaml
xiongxin has quit [Read error: Connection reset by peer]
xiongxin1 is now known as xiongxin
bartholin has joined #ocaml
Haudegen has joined #ocaml
xiongxin1 has joined #ocaml
xiongxin has quit [Ping timeout: 240 seconds]
xiongxin1 is now known as xiongxin
mro has quit [Ping timeout: 250 seconds]
mro has joined #ocaml
mro has quit [Ping timeout: 250 seconds]
jlrnick has joined #ocaml
dhil has joined #ocaml
mro has joined #ocaml
mro has quit [Ping timeout: 240 seconds]
emad has joined #ocaml
mro has joined #ocaml
mro has quit [Ping timeout: 240 seconds]
azimut has quit [Ping timeout: 276 seconds]
<d_bot>
<VPhantom> Jane Street (`Base`, `Core`, etc.) adds an `_exn` suffix to functions which may raise exceptions, but that's the only convention I'm aware of.
<d_bot>
<Shon> That tutorial is fairly old at this point however 🙂
<d_bot>
<Shon> Last time I built a web app it was with dream, which is think is probably the go to now: it’s got more capability, incorporated a lot of what was great about opium, and is extremely well documented, including dozens of examples (using dune).
spip has quit [Quit: Konversation terminated!]
bartholin has quit [Ping timeout: 240 seconds]
spip has joined #ocaml
bartholin has joined #ocaml
bobo_ has joined #ocaml
spip has quit [Ping timeout: 250 seconds]
mro has joined #ocaml
jlrnick has quit [Ping timeout: 250 seconds]
jlrnick has joined #ocaml
jlrnick has quit [Ping timeout: 240 seconds]
zebrag has joined #ocaml
perrierjouet has quit [Quit: WeeChat 3.4]
perrierjouet has joined #ocaml
xiongxin has quit [Ping timeout: 250 seconds]
xiongxin1 has joined #ocaml
xiongxin1 is now known as xiongxin
perrierjouet has quit [Quit: WeeChat 3.4]
dhil has quit [Quit: Leaving]
mro has quit [Remote host closed the connection]
mbuf has quit [Quit: Leaving]
bartholin has quit [Ping timeout: 250 seconds]
perrierjouet has joined #ocaml
bartholin has joined #ocaml
waleee has joined #ocaml
thizanne has quit [Remote host closed the connection]
thizanne has joined #ocaml
pieguy128 has joined #ocaml
bartholin has quit [Ping timeout: 240 seconds]
vicfred has joined #ocaml
bartholin has joined #ocaml
kaph has joined #ocaml
mro has joined #ocaml
gravicappa has quit [Ping timeout: 256 seconds]
wyrd has quit [Remote host closed the connection]
wyrd has joined #ocaml
Serpent7776 has quit [Quit: leaving]
perrierjouet has quit [Quit: WeeChat 3.4]
perrierjouet has joined #ocaml
mro has quit [Ping timeout: 256 seconds]
mro has joined #ocaml
rgrinberg has joined #ocaml
<d_bot>
<Emile Trotignon> Returning a `unit` type can tell it, and it's better practice to try and only have side effects in functions that return a unit type in my opinion
LACampbell has joined #ocaml
<LACampbell>
' let%test _ = ("" = "") ' can anyone explain why "" has type int here? ppx_inline_test"
<LACampbell>
or rather - on the first empty string, I get "Expression has type string but an expression was expected of type int"
<d_bot>
<NULL> Are you using `Base/Core` or any library which removes polymorphic equality ?
<LACampbell>
yes I was. so, removing polymoprhic equality doesn't sound good
<d_bot>
<NULL> It prevents stuff like `Fun.id = Fun.id`; base types' equalities are stored in their respective modules, so you're looking for `String.("" = "")`
<LACampbell>
hmm. ok so it's just like doing arithmetic on Int64s or whatever, I know that pattern. thanks
<d_bot>
<NULL> Pretty much
<LACampbell>
related question - is there some reason why Base doesn't have String.trim?? :/