linus5` has quit [Remote host closed the connection]
Amorphous has quit [Ping timeout: 258 seconds]
Mr_Awesome has quit [Ping timeout: 265 seconds]
Amorphous has joined #ocaml
joewilliams_away has left #ocaml []
valross has quit [Remote host closed the connection]
yakischloba has quit [Quit: Leaving.]
yakischloba has joined #ocaml
tmaedaZ has quit [Ping timeout: 260 seconds]
tmaedaZ has joined #ocaml
boscop_ has joined #ocaml
boscop has quit [Disconnected by services]
boscop_ has left #ocaml []
boscop has joined #ocaml
poincare101 has quit [Quit: leaving]
drk-sd has quit [Quit: friends]
maskd has quit [Quit: ]
enthymeme has quit [Quit: brb]
valross has joined #ocaml
SEcki has quit [Remote host closed the connection]
jeddhaberstro has quit [Quit: jeddhaberstro]
Mr_Awesome has joined #ocaml
yakischloba has quit [Quit: Leaving.]
enthymeme has joined #ocaml
<silas>
Hi! I started reading Jason Hickey "Introduction to Objective Caml" book and was wondering what is the advantage to use nested let's (in the "let .. in" form). Allow variables exist only in the scope they are really necessary?
yakischloba has joined #ocaml
Shoggoth has joined #ocaml
<orbitz>
silas: i don't quite follow
<orbitz>
silas: are you asking why you would do: let f x y = let z = x + y in f z z (* for example *)?
ulfdoz has joined #ocaml
dark has quit [Remote host closed the connection]
MrEvil has joined #ocaml
oc13 has joined #ocaml
myu2 has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
Yoric has quit [Quit: Yoric]
thelema has joined #ocaml
thelema_ has quit [Read error: Connection reset by peer]
flux has quit [Read error: Connection reset by peer]
flux has joined #ocaml
Mr_Awesome has quit [*.net *.split]
valross has quit [*.net *.split]
eb4890 has quit [*.net *.split]
Demitar has quit [*.net *.split]
Associat0r has quit [*.net *.split]
myu2 has quit [*.net *.split]
mbishop has quit [*.net *.split]
orbitz has quit [*.net *.split]
svenl has quit [*.net *.split]
brendan has quit [*.net *.split]
ftrvxmtrx has quit [*.net *.split]
fremo_ has quit [*.net *.split]
nimred has quit [*.net *.split]
Amorphous has quit [*.net *.split]
sgnb` has quit [*.net *.split]
diml has quit [*.net *.split]
Pengzhen has quit [*.net *.split]
willb1 has quit [*.net *.split]
sshc has quit [*.net *.split]
bacam has quit [*.net *.split]
tmaedaZ has quit [*.net *.split]
olegfink has quit [*.net *.split]
javax has quit [*.net *.split]
M| has quit [*.net *.split]
ski has quit [*.net *.split]
mrvn has quit [*.net *.split]
MrEvil has quit [*.net *.split]
yakischloba has quit [*.net *.split]
enthymeme has quit [*.net *.split]
Leonidas has quit [*.net *.split]
Pepe_ has quit [*.net *.split]
infoe has quit [*.net *.split]
mfp has quit [*.net *.split]
Camarade_Tux has quit [*.net *.split]
Asmadeus has quit [*.net *.split]
Chile has quit [*.net *.split]
mal`` has quit [*.net *.split]
CodeBlock has quit [*.net *.split]
oc13 has quit [*.net *.split]
smimou has quit [*.net *.split]
TaXules has quit [*.net *.split]
patronus has quit [*.net *.split]
msteele has quit [*.net *.split]
mjonsson has quit [*.net *.split]
boscop has quit [*.net *.split]
hyperboreean has quit [*.net *.split]
srcerer has quit [*.net *.split]
julm has quit [*.net *.split]
gildor has quit [*.net *.split]
jlouis has quit [*.net *.split]
noj has quit [*.net *.split]
Alpounet has quit [*.net *.split]
myu2_ has joined #ocaml
myu2 has quit [Ping timeout: 276 seconds]
enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
MrEvil has quit [Quit: This computer has gone to sleep]
Yoric has joined #ocaml
myu2 has joined #ocaml
oc13 has joined #ocaml
MrEvil has joined #ocaml
yakischloba has joined #ocaml
enthymeme has joined #ocaml
Mr_Awesome has joined #ocaml
valross has joined #ocaml
boscop has joined #ocaml
tmaedaZ has joined #ocaml
Amorphous has joined #ocaml
javax has joined #ocaml
eb4890 has joined #ocaml
smimou has joined #ocaml
M| has joined #ocaml
Demitar has joined #ocaml
sgnb` has joined #ocaml
Camarade_Tux has joined #ocaml
Associat0r has joined #ocaml
mfp has joined #ocaml
TaXules has joined #ocaml
mbishop has joined #ocaml
nimred has joined #ocaml
fremo_ has joined #ocaml
ftrvxmtrx has joined #ocaml
brendan has joined #ocaml
svenl has joined #ocaml
orbitz has joined #ocaml
patronus has joined #ocaml
diml has joined #ocaml
msteele has joined #ocaml
Asmadeus has joined #ocaml
olegfink has joined #ocaml
ski has joined #ocaml
Leonidas has joined #ocaml
mjonsson has joined #ocaml
Chile has joined #ocaml
noj has joined #ocaml
Pengzhen has joined #ocaml
sshc has joined #ocaml
hyperboreean has joined #ocaml
mrvn has joined #ocaml
Alpounet has joined #ocaml
willb1 has joined #ocaml
jlouis has joined #ocaml
infoe has joined #ocaml
mal`` has joined #ocaml
CodeBlock has joined #ocaml
Pepe_ has joined #ocaml
bacam has joined #ocaml
srcerer has joined #ocaml
julm has joined #ocaml
gildor has joined #ocaml
f[x] has joined #ocaml
rwmjones has joined #ocaml
myu2_ has quit [Remote host closed the connection]
ulfdoz has quit [Ping timeout: 248 seconds]
myu2 has joined #ocaml
ftrvxmtrx has joined #ocaml
yakischloba has quit [Quit: Leaving.]
ttamttam has joined #ocaml
spearalot has joined #ocaml
barismetin has joined #ocaml
barismetin has quit [Changing host]
barismetin has joined #ocaml
barismetin has quit [Client Quit]
barismetin has joined #ocaml
barismetin has quit [Changing host]
barismetin has joined #ocaml
pimmhogeling has joined #ocaml
avsm has joined #ocaml
noj has quit [Quit: leaving]
noj has joined #ocaml
ikaros has joined #ocaml
myu2 has quit [Quit: Leaving...]
rwmjones has quit [Ping timeout: 276 seconds]
rwmjones has joined #ocaml
pimmhogeling has quit [Ping timeout: 265 seconds]
drk-sd has joined #ocaml
robthebob has joined #ocaml
<robthebob>
hey all, i'm hoping to write some fairly simple camlp4, but i haven't been able to find any documentation on the new version. where should i be looking?
<Camarade_Tux>
I haven't read them myself (learning camlp* has been on my TODO for ages) but I've heard good things about them
<robthebob>
thanks they look good, i'll have a read through
pimmhogeling has quit [Ping timeout: 265 seconds]
ikaros has quit [Quit: Leave the magic to Houdini]
sepp2k has joined #ocaml
pimmhogeling has joined #ocaml
_zack has joined #ocaml
pimmhogeling has quit [Ping timeout: 246 seconds]
sepp2k1 has joined #ocaml
sepp2k has quit [Read error: Operation timed out]
drk-sd has quit [Quit: /quit]
th5 has joined #ocaml
jonafan_ has joined #ocaml
ergodick has joined #ocaml
ergodick has left #ocaml []
jonafan has quit [Ping timeout: 276 seconds]
_unK has joined #ocaml
Shoggoth has quit [Quit: Ex-Chat]
pimmhogeling has joined #ocaml
<silas>
orbitz: Yes! sorry for the late answer...
pimmhogeling has quit [Ping timeout: 246 seconds]
<silas>
orbitz: I still think imperativelly... let a = 5;; let b = 6;; let c = a + b;;
ikaros has joined #ocaml
<Camarade_Tux>
silas: these will be global variables which doesn't make them really nice
<thelema>
silas: that's ok in ocaml, as long as you don't start trying to "update" your variables
<silas>
Camarade_Tux: thelema: I see. So the biggest advantage of using the "let .. in" form is that you have variables only when they are really needed...
<silas>
Very nice.
<thelema>
ocaml does encourage small scopes = small lifetimes for variables. It makes the GC easier
<Camarade_Tux>
I use a few global variables, they're all constant
<Camarade_Tux>
variables that you would initialize early and share would be ok too (although not perfect)
<silas>
small lifetime variables... nice concept.
<silas>
Thanks!
<silas>
Camarade_Tux: Yeah, something like let pi = 3.14;; :-)
<avsm>
jake's pages are great; you might also want to look at dyntype: github.com/mirage/dyntype, which gives you dynamic introspection of ocaml types and values. it's a pretty basic use of camlp4