gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.0 http://bit.ly/aNZBUp
Edward_ has quit []
mjonsson has joined #ocaml
<thelema> hcarty: probably not so generally useful
mjonsson_ has joined #ocaml
mjonsson has quit [Read error: No route to host]
<thelema> let map_accum k v m = try Map.modify k (fun lst -> v :: lst) m with Not_found -> Map.add k v m
valross has joined #ocaml
<thelema> hcarty: it might be amusing to have auto-vivifying maps (like perl has)
<thelema> i.e. some default value is returned (and inserted) instead of Not_found
_unK has quit [Remote host closed the connection]
<flux> a variant of Map with default values would definitely be useful
<flux> it has not been once or twice when I've made for example a map of sets
<flux> and always I need to check that if there is no element, return an empty set..
<flux> (note that such a general facility would need to take a function to accommodate mutable values)
mjonsson_ has quit [Remote host closed the connection]
joewilliams is now known as joewilliams_away
<thelema> hashtbl would take a function, map just a value
bzzbzz has quit [Quit: leaving]
ulfdoz has joined #ocaml
<flux> nothing stops one from putting mutable values into a map, and that can be useful at times
<flux> (of course, you wouldn't put mutable keys in either of them)
<flux> for example if you need an associative containre for your mutable values, but you also need to have min_binding
ulfdoz has quit [Ping timeout: 252 seconds]
ulfdoz has joined #ocaml
ulfdoz has quit [Ping timeout: 245 seconds]
valross has quit [Remote host closed the connection]
Yoric has joined #ocaml
ygrek has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
Yoric has quit [Quit: Yoric]
ttamttam has joined #ocaml
despa has quit [Ping timeout: 240 seconds]
despa has joined #ocaml
Amorphous has quit [Ping timeout: 265 seconds]
Leonidas has quit [Read error: Operation timed out]
Leonidas has joined #ocaml
Amorphous has joined #ocaml
ftrvxmtrx has joined #ocaml
hcarty has quit [Ping timeout: 265 seconds]
hcarty has joined #ocaml
hcarty has quit [Ping timeout: 240 seconds]
hcarty has joined #ocaml
ikaros has joined #ocaml
oriba has joined #ocaml
npouillard has quit [Ping timeout: 276 seconds]
npouillard has joined #ocaml
munga has joined #ocaml
oriba has quit [Quit: Verlassend]
sepp2k has joined #ocaml
barismetin has joined #ocaml
ikaros_ has joined #ocaml
Yoric has joined #ocaml
ikaros has quit [Ping timeout: 240 seconds]
waterChip has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
iZZy_ has joined #ocaml
ikaros_ has quit [Ping timeout: 265 seconds]
_andre has joined #ocaml
Yoric has quit [Remote host closed the connection]
Yoric has joined #ocaml
waterChip has quit [Quit: waterChip]
emmanuelux has joined #ocaml
th5 has joined #ocaml
boscop_ has joined #ocaml
ygrek has joined #ocaml
munga has quit [Ping timeout: 240 seconds]
waterChip has joined #ocaml
waterChip has left #ocaml []
ttamttam has quit [Remote host closed the connection]
ikaros_ has joined #ocaml
Snark has joined #ocaml
iZZy_ has quit [Ping timeout: 240 seconds]
bzzbzz has joined #ocaml
ygrek_ has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ygrek has quit [Remote host closed the connection]
ftrvxmtrx has joined #ocaml
munga has joined #ocaml
waterChip_ has joined #ocaml
waterChip_ has quit [Client Quit]
ygrek_ has quit [Ping timeout: 245 seconds]
bzzbzz has quit [Quit: leaving]
_unK has joined #ocaml
patronus has quit [Ping timeout: 272 seconds]
patronus has joined #ocaml
npouillard has quit [Ping timeout: 272 seconds]
mjonsson has joined #ocaml
iZZy_ has joined #ocaml
ikaros_ has quit [Ping timeout: 276 seconds]
yezariaely has joined #ocaml
mjonsson has quit [Remote host closed the connection]
<yezariaely> anyone can give me a hint for more userfriendly error messages when running a ocamlyacc-built parser?
<yezariaely> at the moment I can print the error line and "syntax error"
<yezariaely> but this does not help me during the debugging sessions ;)
<f[x]> use menhir
<f[x]> use OCAMLRUNPARAM=p
<yezariaely> f[x]: thx, I will have a look at that
npouillard has joined #ocaml
th5 has quit [Quit: th5]
chee has quit [Ping timeout: 245 seconds]
npouillard has quit [Ping timeout: 252 seconds]
npouillard has joined #ocaml
bzzbzz has joined #ocaml
joewilliams_away is now known as joewilliams
chee has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
f[x] has quit [Ping timeout: 276 seconds]
npouillard has quit [Ping timeout: 276 seconds]
jonafan has joined #ocaml
npouillard has joined #ocaml
sepp2k has quit [Remote host closed the connection]
yezariaely has left #ocaml []
CoryDambach has quit [Read error: Connection reset by peer]
CoryDambach has joined #ocaml
LionMadeOfLions has quit [Ping timeout: 240 seconds]
init1 has joined #ocaml
ztfw has joined #ocaml
olauzon has joined #ocaml
boscop has joined #ocaml
boscop_ has quit [Ping timeout: 240 seconds]
_unK has quit [Remote host closed the connection]
barismetin has quit [Remote host closed the connection]
ulfdoz has joined #ocaml
ftrvxmtrx has joined #ocaml
npouillard has quit [Ping timeout: 276 seconds]
npouillard has joined #ocaml
ulfdoz has quit [Ping timeout: 265 seconds]
Yoric has quit [Read error: Connection reset by peer]
Yoric has joined #ocaml
ulfdoz has joined #ocaml
Edward_ has joined #ocaml
ikaros_ has joined #ocaml
ygrek_ has joined #ocaml
iZZy_ has quit [Ping timeout: 265 seconds]
ygrek_ has quit [Ping timeout: 245 seconds]
ygrek_ has joined #ocaml
Yoric has quit [Quit: Yoric]
npouillard has quit [Read error: Operation timed out]
DimitryKakadu has joined #ocaml
srcerer has quit [Ping timeout: 240 seconds]
DimitryKakadu has quit [Read error: Connection reset by peer]
DimitryKakadu has joined #ocaml
srcerer has joined #ocaml
npouillard has joined #ocaml
lpereira has joined #ocaml
munga has quit [Ping timeout: 272 seconds]
DimitryKakadu has quit [Read error: Connection reset by peer]
kakadu has joined #ocaml
ccasin has joined #ocaml
npouillard has quit [Read error: Operation timed out]
npouillard has joined #ocaml
ztfw has quit [Remote host closed the connection]
Snark has quit [Quit: Ex-Chat]
olauzon has quit [Quit: olauzon]
_unK has joined #ocaml
kakadu_ has joined #ocaml
kakadu has quit [Read error: Connection reset by peer]
kakadu_ has quit [Read error: Connection reset by peer]
kakadu_ has joined #ocaml
Yoric has joined #ocaml
_andre has quit [Quit: leaving]
hto has quit [Quit: Lost terminal]
ygrek_ has quit [Ping timeout: 245 seconds]
munga has joined #ocaml
kakadu_ has quit [Remote host closed the connection]
hto has joined #ocaml
chee has quit [Ping timeout: 245 seconds]
munga has quit [Ping timeout: 240 seconds]
jonafan has quit [Read error: Connection reset by peer]
jonafan has joined #ocaml
Edward_ has quit []
jonafan has quit [Remote host closed the connection]
Yoric has quit [Quit: Yoric]
sepp2k has joined #ocaml
jonafan has joined #ocaml
init1 has quit [Quit: Quitte]
ccasin has quit [Quit: Leaving]
ulfdoz has quit [Quit: deprecated]
ikaros_ has quit [Quit: Leave the magic to Houdini]
joewilliams is now known as joewilliams_away
joewilliams_away is now known as joewilliams
ulfdoz has joined #ocaml
ulfdoz has quit [Ping timeout: 272 seconds]
ulfdoz has joined #ocaml
boscop has quit [Read error: Connection reset by peer]
ulfdoz_ has joined #ocaml
ulfdoz has quit [Read error: Operation timed out]
ulfdoz_ has quit [Quit: Reconnecting]
ulfdoz has joined #ocaml
lpereira has quit [Quit: Leaving.]