khaladan has quit [Connection timed out]
shawn has quit [Connection timed out]
mikeX has quit ["zzz"]
dtribble_ has quit [Read error: 110 (Connection timed out)]
lispy has joined #ocaml
lispy has quit [K-lined]
shawn has joined #ocaml
Revision17 has quit ["Ex-Chat"]
danly has quit [Read error: 110 (Connection timed out)]
Smerdyakov has quit ["Leaving"]
visq has joined #ocaml
ertai has quit [Remote closed the connection]
ertai has joined #ocaml
dvekravy has quit [Read error: 104 (Connection reset by peer)]
dvekravy has joined #ocaml
ulfdoz has quit [niven.freenode.net irc.freenode.net]
ulfdoz has joined #ocaml
khaladan has joined #ocaml
Revision17 has joined #ocaml
perspectivet has quit [Read error: 110 (Connection timed out)]
mrsolo_ has quit [Read error: 104 (Connection reset by peer)]
mrsolo_ has joined #ocaml
danly has joined #ocaml
Skal has joined #ocaml
Revision17 has quit [Read error: 110 (Connection timed out)]
Tachyon76 has joined #ocaml
Tachyon76 has quit ["Leaving"]
ketty has joined #ocaml
<
ketty>
strings being mutable seems to cause a lot of problems :/
<
sieni>
anything mutable usually cause problems :-)
<
zmdkrbou>
mutable is bad ! :p
pango is now known as pangoafk
<
love-pingoo>
strings are worse
<
love-pingoo>
# let f () = let s = " " in let c = s.[0] in s.[0] <- 'x' ; c ;;
<
love-pingoo>
val f : unit -> char = <fun>
<
love-pingoo>
# f () ;;
<
love-pingoo>
- : char = ' '
<
love-pingoo>
# f () ;;
<
love-pingoo>
- : char = 'x'
<
love-pingoo>
# type t = { mutable c : char } let f () = let s = { c = ' ' } in let c = s.c in s.c <- 'x' ; c ;;
<
love-pingoo>
type t = { mutable c : char; }
<
love-pingoo>
val f : unit -> char = <fun>
<
love-pingoo>
# f () ;;
<
love-pingoo>
- : char = ' '
<
love-pingoo>
# f () ;;
<
love-pingoo>
- : char = ' '
<
love-pingoo>
... sorry for the slight flood
<
flux__>
yeah, there are times I wished ocaml also used the same approach as java (shrug)
<
ketty>
strings being objects?
<
ketty>
yeah they are not mutable right?
<
flux__>
strings and stringbuffers
<
flux__>
nonmutable versus mutable
pangoafk is now known as pango
<
flux__>
although, one'd really want type classes for that to be convenient.. ;)
<
ketty>
i like ocaml's object system better then java's...
<
ketty>
i like not being forced to have classes for everything...
<
pango>
non mutable strings could be automatically shared too...
<
zmdkrbou>
as it is done for lists i believe
<
pango>
or better yes, using a global hash table, to share equal strings, even if they were generated separately (from reading a file, whatever)
<
pango>
you can already do it using a weak hash table, but you have to be careful because of mutability
slipstream-- has quit [Read error: 104 (Connection reset by peer)]
slipstream has joined #ocaml
<
ketty>
wow.. commenting out an unused private method changes the behaviour of the program :)
illya23b_ has joined #ocaml
illya23b_ has quit [Client Quit]
Submarine has joined #ocaml
Submarine has quit ["Leaving"]
chad has joined #ocaml
khaladan has quit [Read error: 104 (Connection reset by peer)]
Smerdyakov has joined #ocaml
descender has quit [Read error: 104 (Connection reset by peer)]
descender has joined #ocaml
smimou has joined #ocaml
smimram has joined #ocaml
ski_ has quit [Read error: 110 (Connection timed out)]
pango is now known as pangoafk
descender has quit [Read error: 113 (No route to host)]
pangoafk is now known as pango
Snark has joined #ocaml
visq has quit [Remote closed the connection]
scanpat has joined #ocaml
scanpat is now known as toto
Skal has quit [Remote closed the connection]
_fab has joined #ocaml
ketty has quit [Read error: 104 (Connection reset by peer)]
Snark has quit ["Leaving"]
alcojol has joined #ocaml
love-pingoo has quit ["Connection reset by by pear"]
julbouln has left #ocaml []
Revision17 has joined #ocaml
khaladan has joined #ocaml
toto has quit ["Lost terminal"]
_fab has quit [Remote closed the connection]
alcojol has quit ["KVIrc 3.2.0 'Realia'"]
easy4_ has joined #ocaml
sieni has quit [Read error: 110 (Connection timed out)]
smimram has quit ["bli"]
smimou has quit ["bli"]
Schmurtz has quit ["Dodo !"]