<zozozo>
on line 54 you give a single string argument "Angeline jolie" to the class constructor, where it expectw two (presumable "Angelina" and "Jolie"), so since it is "missing" an argument, the type of mother is 'string -> femal' instead of being 'female 'like you probably expected
<selite>
zozozo: Ok, fixed. https://pastebin.com/ZEnJJCdr Now it only prints name and surname of father and mother. It's like it skips the List.iter .. to print the children in the list.
<zozozo>
selite: you forgot to call the 'addChild' method to add the children to the family
<selite>
Ok, works great. Thanks a ton.
barcabouna has quit [Ping timeout: 255 seconds]
raphaelss has quit [Ping timeout: 240 seconds]
<zozozo>
sure, anytime
barcabouna has joined #ocaml
mengu has joined #ocaml
mengu has quit [Ping timeout: 240 seconds]
raphaelss has joined #ocaml
raphaelss has quit [Ping timeout: 255 seconds]
raphaelss has joined #ocaml
dhil has joined #ocaml
silver has joined #ocaml
samrat has joined #ocaml
Merv_ has joined #ocaml
MercurialAlchemi has joined #ocaml
jaffa has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
jaffa has quit [Client Quit]
Merv_ has quit [Ping timeout: 240 seconds]
jlam__ has joined #ocaml
samrat has quit [Ping timeout: 240 seconds]
jlam_ has quit [Ping timeout: 255 seconds]
jlam1 has joined #ocaml
jlam__ has quit [Ping timeout: 260 seconds]
andreas_ has joined #ocaml
selite has quit [Quit: Page closed]
<shon>
Hi! Has anyone gotten decent autocomplete working in Utop in Emacs?
<shon>
By which I mean hooking in company-mode or helm to handle the selection of auto-complete alternatives.
<shon>
Much googling hasn't given me any hints for a solution.
<Drup>
I'm not sure anyone tried that
mengu has joined #ocaml
mengu has quit [Ping timeout: 240 seconds]
copy` has joined #ocaml
<shon>
I wonder if this indicates I am using Utop more heavily than a competent OCamler should...
TheLemonMan has joined #ocaml
Merv_ has joined #ocaml
<Drup>
To each it's own style. The problem is that utop's integration is not good enough once you have projects of a certain size.
<companion_cube>
the question on discourse about loading doc in utop was interesting, too
<Drup>
I wonder if it wouldn't be more convenient to get it into ocp-index directly
<reynir>
yes, I agree
<reynir>
I mentioned it as a side remark in an issue with ocp-index, but I guess a new issue would be more appropriate
<Drup>
Additionally, add the injection of the #require into opam-user-setup
<reynir>
Yea, I've considered that, but on the other hand the #require slows down starting utop a lot (almost 1 second on my machine) :/
<Drup>
ah, yes, that's a problem with ocp-index
<Drup>
I wonder if leveraging odig wouldn't be a better solution, not sure if the internal architecture is appropriate
<Drup>
this way, you could both show the documentation and give a link to the local HTML rendering
<reynir>
That would be cool
agravier has quit [Quit: agravier]
agravier has joined #ocaml
mengu has joined #ocaml
threshold has quit [Ping timeout: 246 seconds]
shon has quit [Ping timeout: 260 seconds]
MercurialAlchemi has quit [Ping timeout: 240 seconds]
jlam_ has joined #ocaml
jlam1 has quit [Ping timeout: 260 seconds]
shon has joined #ocaml
threshold has joined #ocaml
<shon>
Drup: I've wonderd if the repl habit isn't somehow in opposition to well-specified, type-guided, development...
<shon>
Drup: Could you elaborate a bit on the problems with utop's integration with projects of a certain size? Is it more than the problem of keeping the .ocamlinit updated?
<Drup>
well, consider you are working on module Foo. Ideally, you would like to automatically load all files before Foo in the dependency order in the REPL. You would also like to reload modules when they are recompiled. You also ocasionally would like to break abstraction boundaries. We don't really have stuff like that right now
<shon>
Nice, ocp-index-top seems like a great edition to the ecosystem.
<Drup>
It does work extremely well if you have only one file, though
<shon>
Drup: I've been using solvuu-build on my current toy project, and it's doing a great job of managing the Utop environemnt so far.
<Drup>
ah, maybe solvuu does a bit of magic
<shon>
No problems integrating a dozen files and they dependencies into the repl (once I figured out the configuraiton).
<shon>
I thin it just generates the .ocamlinit as you add new dependencies.
<shon>
But I grant it took me some time to hit upon that, and there are other complexities to the build system and specifying it that are quite burdensome.
<shon>
Having one relatively obscure tool that *mostly* provides a work-around (provided one has time to learn a relativley esoteric system) isn't really a solution the problem you're describing...
<shon>
tbh, Tuareg mode provides me most everything I need: nice auto-complete integration, inline documentation and source lookup, live type checking (within limits).
tane has joined #ocaml
<shon>
I only drop into the repl to test out some behavior now and then... and this is probably better managed with tests.
<shon>
Thanks for the info though. It provides some good tips on areas I might be able to help build out at some point. And that's exciting :)
ryanartecona has joined #ocaml
agravier has quit [Quit: agravier]
dhil has quit [Ping timeout: 258 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
samrat has quit [Ping timeout: 255 seconds]
samrat has joined #ocaml
andreas_ has quit [Quit: Connection closed for inactivity]
jlam__ has joined #ocaml
jlam_ has quit [Ping timeout: 260 seconds]
ziyourenxiang has quit [Ping timeout: 255 seconds]
agravier has joined #ocaml
cschneid has quit [Ping timeout: 258 seconds]
cschneid has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
MercurialAlchemi has joined #ocaml
slack2 has joined #ocaml
slack1 has quit [Remote host closed the connection]
slack2 has quit [Remote host closed the connection]
slack3 has joined #ocaml
madroach has quit [Remote host closed the connection]
jlam__ has quit [Ping timeout: 240 seconds]
madroach has joined #ocaml
agravier has quit [Quit: agravier]
samrat has quit [Ping timeout: 255 seconds]
spew has joined #ocaml
ryanartecona has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
madroach has quit [*.net *.split]
jyc has quit [*.net *.split]
adi_____ has quit [*.net *.split]
justicefries has quit [*.net *.split]
bronsen has quit [*.net *.split]
rpcope has quit [*.net *.split]
trevorriles has quit [*.net *.split]
fluter has quit [*.net *.split]
JSharp has quit [*.net *.split]
bigs has quit [*.net *.split]
lynn has quit [*.net *.split]
l1x has quit [*.net *.split]
lobo has quit [*.net *.split]
Armael has quit [*.net *.split]
trevorriles has joined #ocaml
madroach has joined #ocaml
Armael has joined #ocaml
rpcope has joined #ocaml
lobo has joined #ocaml
adi_____ has joined #ocaml
lynn has joined #ocaml
justicefries has joined #ocaml
jyc has joined #ocaml
JSharp has joined #ocaml
bigs has joined #ocaml
fluter has joined #ocaml
l1x has joined #ocaml
cranmax_ has joined #ocaml
cranmax has quit []
cranmax_ is now known as cranmax
cranmax has quit [Client Quit]
cranmax has joined #ocaml
spew has quit [Quit: foobar]
spew has joined #ocaml
spew has quit [Client Quit]
kakadu has joined #ocaml
jao has joined #ocaml
KeyJoo has joined #ocaml
jao has quit [Ping timeout: 260 seconds]
bronsen has joined #ocaml
pierpa has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
hashpuppy has joined #ocaml
Sim_n has joined #ocaml
Simn has quit [Ping timeout: 240 seconds]
Algebr has quit [Ping timeout: 240 seconds]
copy` is now known as copy_
MercurialAlchemi has quit [Ping timeout: 260 seconds]