sponge45 changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/
swater has quit ["Quat"]
orb1t_ has joined #ocaml
orb1t has quit [Read error: 60 (Operation timed out)]
MisterC has joined #ocaml
Skal has quit [Read error: 60 (Operation timed out)]
sponge45 has quit ["zzzzzzzzzz"]
e_e_coli has joined #ocaml
e_e_coli has left #ocaml []
smimou has quit ["bli"]
MisterC has quit [Read error: 104 (Connection reset by peer)]
wer has joined #ocaml
wer has left #ocaml []
Smerdyakov has quit ["Leaving"]
bluestorm has quit ["Konversation terminated!"]
b00t has joined #ocaml
joshcryer has quit [Read error: 104 (Connection reset by peer)]
slowriot has joined #ocaml
<Mr_Awesome> i like ocaml... :)
<slowriot> has anyone here read purely functional data structures?
<slowriot> (by Okasaki)
<Mr_Awesome> i havent, but why do you ask?
<slowriot> Well, I can't decide if I should use a name like "lazy", or a name like "(~$)" for the function which converts a function into a delayed value.
<slowriot> it isn't a big deal, I'll go with ~$
<pstickne> lazy.
<slowriot> yeah, lazy is standard
<slowriot> don't you think ~$ would be easier, though? I rename lazy to ~$ and force to !$.
<slowriot> it might be easier to read
<Mr_Awesome> it might not be
<Mr_Awesome> i would go with words if i were you
shans_home has quit [Read error: 110 (Connection timed out)]
slowriot has left #ocaml []
b00t has quit [Remote closed the connection]
b00t has joined #ocaml
pants1 has joined #ocaml
shawn has quit [Read error: 110 (Connection timed out)]
pants1 has quit [Read error: 104 (Connection reset by peer)]
pants1 has joined #ocaml
johnnowak has joined #ocaml
danly has quit [Remote closed the connection]
slipstream has joined #ocaml
slipstream-- has quit [Read error: 110 (Connection timed out)]
slipstream-- has joined #ocaml
slipstream has quit [Read error: 110 (Connection timed out)]
shawn has joined #ocaml
shawn has quit [Connection timed out]
shawn has joined #ocaml
shans_home has joined #ocaml
delamon has joined #ocaml
asmanian has joined #ocaml
pants1 has quit [Remote closed the connection]
<pango> lazy is a special construct, so it will fail
<pango> if ~$ (or whatever) is a function, its arguments will be evaluated before it's called
asmanian is now known as MrCraps
<pango> the only way would be to use camlp4
MrCraps is now known as asmanian
pango has quit ["brb"]
pstickne has left #ocaml []
pango has joined #ocaml
Shimei has quit [Read error: 110 (Connection timed out)]
bluestorm has joined #ocaml
Shimei has joined #ocaml
asmanian has quit [Remote closed the connection]
Mr_Awesome has quit ["and the Awesome Level drops"]
delamon has quit [Remote closed the connection]
johnnowak has quit []
delamon has joined #ocaml
ikaros_ has quit ["Leaving"]
ikaros has joined #ocaml
orb1t has joined #ocaml
_JusSx_ has joined #ocaml
smimou has joined #ocaml
orb1t_ has quit [Read error: 110 (Connection timed out)]
descender has quit ["Why has elegance found so little following? Elegance has the disadvantage that hard work is needed to achieve it and a good e]
descender has joined #ocaml
slipstream has joined #ocaml
slipstream-- has quit [Read error: 110 (Connection timed out)]
Skal has joined #ocaml
Skal has quit [Read error: 104 (Connection reset by peer)]
b00t has quit [Read error: 104 (Connection reset by peer)]
Smerdyakov has joined #ocaml
mattam has quit [Read error: 104 (Connection reset by peer)]
mattam has joined #ocaml
ikaros has quit [Read error: 110 (Connection timed out)]
ikaros has joined #ocaml
klapmuet1 has joined #ocaml
klapmuetz has quit [Read error: 110 (Connection timed out)]
descender has quit ["Why has elegance found so little following? Elegance has the disadvantage that hard work is needed to achieve it and a good e]
Skal has joined #ocaml
swater has joined #ocaml
_JusSx_ has quit [Client Quit]
johnnowak has joined #ocaml
_JusSx_ has joined #ocaml
pango has quit ["Client exiting"]
shawn has quit ["This computer has gone to sleep"]
shawn has joined #ocaml
orb1t has left #ocaml []
_velco has joined #ocaml
klapmuet1 is now known as klapmmuetz
klapmmuetz is now known as klapmuetz
danly has joined #ocaml
_velco is now known as velco
swater has quit ["Quat"]
pango has joined #ocaml
pmdboi_ has joined #ocaml
velco has quit ["I'm outta here ..."]
<pmdboi_> i'm trying to remember, but i can't seem to find any web pages that mention it... if you have an ocaml struct defined, is there a syntax that returns a copy of an instance of that struct with just one specified field changed?
<pmdboi_> like, for instance, suppose we have
<pmdboi_> type point = { x : float; y : float };;
<pmdboi_> let p = { x = 1.; y = 2. };;
<Smerdyakov> First, they're called records.
<pmdboi_> ok, records, sorry :)
<Smerdyakov> Second: {p with y = 3.}
<pmdboi_> dammit, "with"
* pmdboi_ is a moron
<pmdboi_> i had tried "where"
<pmdboi_> been hanging around haskell too much, i guess.
<pmdboi_> thanks :)
<pmdboi_> there's a similar syntax for objects, right?
<pango> functional objects, you mean ?
<pmdboi_> right
<pmdboi_> again, my google-fu is failing me
<Smerdyakov> {< f = 1 >} (* inside the class definition only *)
<Smerdyakov> All other fields but f are inherited from self
<pmdboi_> ah, cool
slowriot has joined #ocaml
pmdboi_ has quit [Read error: 104 (Connection reset by peer)]
Mr_Awesome has joined #ocaml
pango has quit [Remote closed the connection]
pango has joined #ocaml
love-pingoo has quit ["Connection reset by pear"]
Smerdyakov has quit ["eat"]
joshcryer has joined #ocaml
delamon has quit ["WeeChat 0.2.1"]
bluestorm has quit [Remote closed the connection]
jlouis has joined #ocaml
smimou has quit [Read error: 110 (Connection timed out)]
_velco has joined #ocaml
_velco is now known as velco
johnnowak_ has joined #ocaml
smimou has joined #ocaml
johnnowak has quit [Read error: 110 (Connection timed out)]
johnnowak_ is now known as johnnowak
Smerdyakov has joined #ocaml
velco has quit [Client Quit]
_JusSx_ has quit [Client Quit]
shawn has quit ["This computer has gone to sleep"]
Skal has quit [Remote closed the connection]