petter_ has quit [Read error: 110 (Connection timed out)]
Jeb has left #ocaml []
batkins_ is now known as interferon
interferon has quit [Remote closed the connection]
batdog is now known as batdog|gone
HoneyBee is now known as Oatly
batdog|gone is now known as batdog
Oatmeat has joined #ocaml
<Oatly>
.
Oatmeat has left #ocaml []
Oatmeat has joined #ocaml
Oatmeat has left #ocaml []
Oatmeat has joined #ocaml
Oatmeat has left #ocaml []
batdog is now known as batdog|gone
interferon has joined #ocaml
<interferon>
is ocaml purely functional/
mrsolo has quit ["Leaving"]
Mike_L has quit [kornbluth.freenode.net irc.freenode.net]
Herrchen_ has quit [kornbluth.freenode.net irc.freenode.net]
mauke has quit [kornbluth.freenode.net irc.freenode.net]
cmeme has quit [kornbluth.freenode.net irc.freenode.net]
Amorphous has quit [kornbluth.freenode.net irc.freenode.net]
mfurr has quit [kornbluth.freenode.net irc.freenode.net]
mellum has quit [kornbluth.freenode.net irc.freenode.net]
mw has quit [kornbluth.freenode.net irc.freenode.net]
mattam has quit [kornbluth.freenode.net irc.freenode.net]
skylan has quit [kornbluth.freenode.net irc.freenode.net]
_shawn has quit [kornbluth.freenode.net irc.freenode.net]
Number17 has quit [kornbluth.freenode.net irc.freenode.net]
rossberg has quit [kornbluth.freenode.net irc.freenode.net]
r_qvisito has quit [kornbluth.freenode.net irc.freenode.net]
det has quit [kornbluth.freenode.net irc.freenode.net]
Banana has quit [kornbluth.freenode.net irc.freenode.net]
interferon has quit [kornbluth.freenode.net irc.freenode.net]
gim has quit [kornbluth.freenode.net irc.freenode.net]
pattern_ has quit [kornbluth.freenode.net irc.freenode.net]
vincenz has quit [kornbluth.freenode.net irc.freenode.net]
Demitar has quit [kornbluth.freenode.net irc.freenode.net]
batdog|gone has quit [kornbluth.freenode.net irc.freenode.net]
TaXules has quit [kornbluth.freenode.net irc.freenode.net]
Oatly has quit [kornbluth.freenode.net irc.freenode.net]
mflux has quit [kornbluth.freenode.net irc.freenode.net]
noj has quit [kornbluth.freenode.net irc.freenode.net]
Hadaka has quit [kornbluth.freenode.net irc.freenode.net]
Hadaka has joined #ocaml
Mike_L has joined #ocaml
Herrchen_ has joined #ocaml
mauke has joined #ocaml
cmeme has joined #ocaml
Amorphous has joined #ocaml
mfurr has joined #ocaml
mw has joined #ocaml
skylan has joined #ocaml
mattam has joined #ocaml
mellum has joined #ocaml
mflux has joined #ocaml
noj has joined #ocaml
interferon has joined #ocaml
gim has joined #ocaml
pattern_ has joined #ocaml
Oatly has joined #ocaml
_shawn has joined #ocaml
rossberg has joined #ocaml
r_qvisito has joined #ocaml
vincenz has joined #ocaml
Number17 has joined #ocaml
det has joined #ocaml
Demitar has joined #ocaml
batdog|gone has joined #ocaml
Banana has joined #ocaml
TaXules has joined #ocaml
<shrimpx>
interferon: nope
<Number17>
is that because of references that can be assigned to, as well as assignments in classes?
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
interferon has quit ["bed"]
Herrchen has joined #ocaml
Herrchen_ has quit [Read error: 110 (Connection timed out)]
Snark has joined #ocaml
vezenchio has joined #ocaml
zvrba has joined #ocaml
<zvrba>
ufff.. could someone tell me in short the advantages of ocaml over lisp?
<zvrba>
i'm a C++ programmer who is really missing lambdas (I'm using classes as a poor man's lambdas)
<zvrba>
i tend to write functional-style code.. and I'm intrigued by ocaml
<zvrba>
but it seems that it has a steep learning curve
<zvrba>
what I find missing in Ocaml is easy interfacing to native (C-generated) binary files. functions like perls' pack/unpack (e.g. give a template like 'fL' and binary string and get the tuple with one float and one long)
<zvrba>
i wasn't able to find it in the docs...
<shrimpx>
Number17: yea
<Snark>
re
<Snark>
zvrba: lisp is mostly untyped
<Snark>
ocaml is strongly typed
<Snark>
and the typing is mostly implicit (ie: the compiler determines most types for you)
<det>
Ocaml has a nice type system, and it is faster.
<det>
Nicer implementation than most lisp/schemes all across the board.
<vezenchio>
the typing system has from what i can tell become stricter in which values it assigns truely polymorphic types (ie those with 'a type type variables in them) to
<vezenchio>
with recent versions
<Oatmeat>
that's ok.. I'm just happy to know what the underscore means
batdog|gone is now known as batdog
ulfdoz has joined #ocaml
paganini has joined #ocaml
ulfdoz has quit ["try 'n' fail"]
ulfdoz has joined #ocaml
Gueben has joined #ocaml
<ulfdoz>
mary
<ulfdoz>
args, sorry
Schmurtz has joined #ocaml
Amorphous has quit ["arg... must... shutdown... computer burnin..."]
Amorphous has joined #ocaml
Banana has quit [Read error: 104 (Connection reset by peer)]
Banana has joined #ocaml
mattam has quit [Read error: 113 (No route to host)]
mattam has joined #ocaml
Schmurtz has quit [Read error: 110 (Connection timed out)]
_JusSx_ has quit ["leaving"]
GuebN has joined #ocaml
Gueben has quit [Read error: 110 (Connection timed out)]
vezenchio has quit ["\o/ in mochintin namocniuh \o/"]
GuebN has quit ["plouf"]
Gueben has joined #ocaml
Snark has quit ["Leaving"]
smimou has quit ["?"]
smimou has joined #ocaml
Nutssh has joined #ocaml
r2d4 has joined #ocaml
<r2d4>
How do you break out of a for loop in OCaml?
<mellum>
you don't. You use recursion if you need more complicated control flow.
<r2d4>
ok! this is going to need some work from me :-)
<smimou>
or you can use exceptions...
<r2d4>
that seems to fit my imperative brain.
<r2d4>
When I need an updatable value, I seem to have to options, use a ref or use a type with a mutable value. What is preferred generally?
<smimou>
a ref
<smimou>
mutable is when you need records
<mellum>
well, a ref is a one-elemented mutable record, so it's really the same
<r2d4>
since functional programming seems to be about avoiding updatable values, are those considered necessary evil or just an imperfect shortcut?
<mellum>
well, sometimes it's just easier to use a mutable value. I don't think many people think you should completely avoid them