threeve has quit [Connection timed out]
meren is now known as meren[N\A]
Nutssh has joined #ocaml
threeve has joined #ocaml
Nutssh has quit ["Client exiting"]
Smerdyakov has joined #ocaml
<
Amorphous>
ax: you mean the apostrophe ' from types like: val sort : 'a list -> 'a list = <fun>
<
Amorphous>
or is there in ocaml realy somewhere an backtick ` used?
threeve_ has joined #ocaml
threeve has quit [Read error: 104 (Connection reset by peer)]
threeve_ has quit [Read error: 104 (Connection reset by peer)]
threeve has joined #ocaml
mrsolo has quit [Read error: 104 (Connection reset by peer)]
<
ax>
Amorphous: I was looking at ocamlSdl and they used a backtick `
UziMonkey has quit [Remote closed the connection]
dbueno has joined #ocaml
<
dbueno>
What do you ocaml'ers use for unit testing?
dan2 has quit [Excess Flood]
dbueno has quit ["This computer has gone to sleep"]
dan2 has joined #ocaml
UziMonkey has joined #ocaml
skylan_ is now known as skylan
Smerdyakov has quit []
threeve has quit []
kothog has joined #ocaml
batdog is now known as batdog|gone
vezenchio has joined #ocaml
whee has quit ["Leaving"]
Saulzar has quit ["Leaving"]
__DL__ has joined #ocaml
kothog has quit [Read error: 110 (Connection timed out)]
Skal has joined #ocaml
Skal has quit ["Client exiting"]
Gueben has joined #ocaml
meren[N\A] is now known as meren
two-face has joined #ocaml
two-face has quit ["Leaving"]
Zyroth has joined #ocaml
<
Zyroth>
how do I check in pattern matching wether an array of an array is type bool?
<
Zyroth>
match matrix with -> Array(Array(Bool(_))) -> foo;; ?
<
Schmurtz>
you can't
<
Schmurtz>
because of ocaml strong type checking, you don't need to check the type of a variable
<
Zyroth>
but say I have a type 'a list
<
Schmurtz>
the type is always defined by the context
<
Zyroth>
and a function fill_with_defaults
<
Zyroth>
which is supposed to fill the list with n times the value 0 (if string), false (if bool), ...
<
Schmurtz>
you have to write 2 functions, one for bool arrays, one for other
<
Schmurtz>
a solution may be to create a type like
<
Schmurtz>
type myarray = BOOLARRAY pf bool array | INTARRAY of int array
lus|wats has joined #ocaml
lus|wats has quit [Remote closed the connection]
lus|wats has joined #ocaml
lus|wats has quit [Remote closed the connection]
pango has joined #ocaml
ski has joined #ocaml
zigong has joined #ocaml
Smerdyakov has joined #ocaml
Lemmih has joined #ocaml
Lemmih has left #ocaml []
dan2 has joined #ocaml
dan2 is now known as dan2_
dan2_ has quit [Excess Flood]
dan2_ has joined #ocaml
dan2_ has quit [Excess Flood]
dan2_ has joined #ocaml
dan2_ has quit [Excess Flood]
dan2_ has joined #ocaml
Smerdyakov has quit []
_zigong has joined #ocaml
_zigong has quit [Remote closed the connection]
_zigong has joined #ocaml
exa has joined #ocaml
zigong has quit [Read error: 110 (Connection timed out)]
_zigong is now known as zigong
Zyroth has joined #ocaml
Zyroth has quit [Connection reset by peer]
Zyr has joined #ocaml
Zyr has quit [Client Quit]
Zyroth has joined #ocaml
meren is now known as jiji
jiji is now known as meren
barismetin has joined #ocaml
meren is now known as osman
menace has joined #ocaml
osman is now known as meren
meren is now known as osman
osman is now known as meren
threeve has joined #ocaml
mikeX has joined #ocaml
mikeX has quit [Read error: 110 (Connection timed out)]
menace has left #ocaml []
Snark has quit [Read error: 110 (Connection timed out)]
hajamieli has quit [Read error: 110 (Connection timed out)]
ski has quit ["Zzz"]
petter_ has quit [Read error: 110 (Connection timed out)]
zigong has quit [Connection timed out]
vezenchio has quit ["\o/ in mochintin namocniuh \o/"]
Gueben has quit [Remote closed the connection]
Gueben has joined #ocaml
ulfdoz_ has joined #ocaml
ulfdoz has quit [Read error: 110 (Connection timed out)]
__DL__ has quit ["Bye Bye"]