flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml MOOC http://1149.fr/ocaml-mooc | OCaml 4.03.0 announced http://ocaml.org/releases/4.03.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
<rgrinberg> Algebr`: setting CC doesn't work?
<Algebr`> rgrinberg: as an oasis field? just CC: clang?
<rgrinberg> $ export CC=gcc
<Algebr`> bah, that's external, will try now though
<rgrinberg> I thought ocamlc respected that. But who knows what oasis does
<Algebr`> nope, doesn't work
<Algebr`> ridiculously hard to just change gcc to clang
<Algebr`> perhaps it can be set in a _tags file
<struk|desk> Algebr`: what is the correcy ocamlc comamd to that, if you didn't use oasis to generate it?
<struk|desk> *correct
<Algebr`> -cc clang
<rgrinberg> passing -cc to ocamlc through ocamlbuild should be simple enough
<Algebr`> which I pass to ByteOpt: -cc clang and NativeOpt: -cc clang
<rgrinberg> I'm not sure how to do it through a -tags file though
<Algebr`> rgrinberg: any oasis field to do it?, like XXOCamlbuildExtra or something
<rgrinberg> you can just edit _tags normally. Just do it outside the oasis generated markers
<rgrinberg> and it will not override your extra tags
<Algebr`> yea i get that, i meant what ought i put
<Algebr`> building is so utterly broken and we all put up with it
<struk|desk> Algebr`: hmm mrvn does it here, apparently https://github.com/mrvn/ocaml-qt5/blob/master/_oasis#L65 but with g++
<Algebr`> yea I see that but I am suspect about it
<rgrinberg> Algebr`: I thought you stuck to makefiles...
<Algebr`> rgrinberg: well I started this project with a makefile and now using oasis
<Algebr`> but now rage qutting back to a makefile
<Algebr`> seriously, impossible to change gcc to clang. Incredibly frustrating
nicholasf has quit [Remote host closed the connection]
<rgrinberg> Algebr`: can you show us the project?
nicholasf has joined #ocaml
<Algebr`> rgrinberg: of course, one moment
<rgrinberg> Well at least it uses gcc by default for me :P
<Algebr`> ....
<rgrinberg> looks like it doesn't know wtf is fblocks
<Algebr`> that's because its not respecting -cc clang
bobry has quit [Quit: Connection closed for inactivity]
<Algebr`> its just ignoring ByteOpt/NativeOpt altogether
<Algebr`> I think this might be a real bug in oasis
<Algebr`> what the fuck, the oasis github page doesn't even accept issues??? https://github.com/ocaml/oasis
unbalancedparen has quit [Ping timeout: 260 seconds]
<rgrinberg> Algebr`: sorry but i don't have time for oasis ^_^
<Algebr`> why does an ocaml sanctioned project, under the ocaml umbrella, not accept issues.
<rgrinberg> try adding this to your myocamlbuild.ml let () = flag ["c"] (A "-cc clang")
<Drup> the bug tracker is still on the forge .. :/
<rgrinberg> This should help you continue until you figure out what are the correct oasis incanetations
<Algebr`> rgrinberg: i also didn't want to use it but then became a hassle to deal with META, etc etc
<Algebr`> rgrinberg: trying
nyu_ has joined #ocaml
nicholasf has quit [Ping timeout: 244 seconds]
nicholasf has joined #ocaml
<Algebr`> rgrinberg: that produces ".../ocamlfind ocamlc '-cc clang' -g -ccopt...."
<Algebr`> which of course craps out because ocamlc: unknown option '-cc clang'.
<rgrinberg> Algebr`: it worked for me :O
<rgrinberg> what about this let () = flag ["c"] (S [A "-cc"; A "clang"])
<Drup> yeah, it should be splited
<rgrinberg> Drup: i'm always lazy about it b/c i doesn't seem to make a difference to me usually :/
<Drup> rgrinberg: plateform specific quoting
nichola__ has joined #ocaml
<Algebr`> great, now this craps out: /home/gar/.opam/working/bin/ocamlfind: unknown option '-cc'.
<Algebr`> usage: ocamlfind ocamlmklib [options] file ...
<Algebr`> ocamlmklib doesn't know what to do
<rgrinberg> my flag declaration isn't precise enough i'm betting
<rgrinberg> try something like flag ["c"; "compile"]
<rgrinberg> Sorry I don't have the full lib so I can't test it properly..
unbalancedparen has joined #ocaml
nicholasf has quit [Ping timeout: 240 seconds]
<Algebr`> yess, finally.
<Algebr`> rgrinberg, Drup: Thank you!
<rgrinberg> Algebr`: the correct way is to put this flag declaration in a dispatch "handler"
<rgrinberg> But I forgot way so I'm just cargo culting this to you
<Drup> I'm slightly surprised by both the fact that there is not ocamlbuild pflag for cc and the behavior of ByteOpt
<struk|desk> I think you are supposed to work with one of cc, native_c_compiler, or byte_c_compiler variables..but I couldn't inject them inside oasis file itself, only via ./configure --overide
mcc has joined #ocaml
nichola__ has quit [Remote host closed the connection]
<Algebr`> oh ffs, if you make your own myocamlbuild.ml then it will lose the options from the oasis file
<rgrinberg> Algebr`: can't you just append that line outside the oasis generated markers?
<Algebr`> I only get the myocamlbuild.ml if I do oasis setup, then I can add it to the end there
<Algebr`> if I do oasis dynamic, then no myocamlbuild.ml is made
<Algebr`> so I'll just bite the bullet and use oasis setup
<Algebr`> , append it there
<Drup> Algebr: no you don't need to
<Drup> (* OASIS_START *)
<Drup> (* OASIS_STOP *)
<Drup> just put that
<Drup> oasis is going to fill it
<Drup> (just like for _tags)
shinnya has quit [Ping timeout: 240 seconds]
<Algebr`> it didn't, just tried. whatever, will just use this approach, at least it works.
<rgrinberg> Drup: is ocamlbuild expected to provide an appropriate pflag for every compiler flag?
<rgrinberg> perhaps it's worth making an issue
<Drup> rgrinberg: yes
adelbertc has quit [Quit: Connection closed for inactivity]
<Algebr`> rgrinberg: this lets me use clang++ now, I dropped C++ completely cause of this hassle to build, now working, much appreciated
<rgrinberg> NP
seangrove has quit [Remote host closed the connection]
sh0t has quit [Remote host closed the connection]
sh0t has joined #ocaml
<Algebr`> ocamlbuild was separated out as a separate opam package but ocamldoc hasn't been yet
unbalancedparen has quit [Ping timeout: 258 seconds]
vfoley has joined #ocaml
FreeBirdLjj has joined #ocaml
aphprentice has quit [Quit: Connection closed for inactivity]
<rgrinberg> Algebr`: yes. although i think that we all hope ocamldoc's future is rm -rf
<rgrinberg> and not its repo
<Algebr`> where and what is the replacement
<Algebr`> ah, I love opam depexts
<Algebr`> rgrinberg: interesting
yunxing_ has joined #ocaml
sh0t has quit [Quit: Leaving]
yunxing_ has quit [Client Quit]
adelbertc has joined #ocaml
<Algebr`> Drup: how does tyxml print that opam message for installing tyxmlppx
<Algebr`> I don't see it in source, so it must be something in opam-repo itself
<Algebr`> ah wow, seeing it now
FreeBird_ has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 246 seconds]
FreeBird_ has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
Algebr` has quit [Ping timeout: 250 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
Algebr` has joined #ocaml
<gasche> rgrinberg: will you send me a pull-request to implement a cc(...) parametrized flag in upstream ocamlbuild?
<rgrinberg> gasche: sure, I'll give it a try.
<gasche> thanks
<gasche> Algebr` could you maybe send an email to the oasis maintainer, explaining that you had a hard time finding the bugtracker from the github page?
<gasche> or maybe a pull-request against the README file directly, adding a link there
yunxing_ has joined #ocaml
yunxing__ has joined #ocaml
tmtwd has joined #ocaml
yunxing_ has quit [Ping timeout: 250 seconds]
fluter has quit [Ping timeout: 272 seconds]
<rgrinberg> gasche: should cc pflag apply only to C sources?
fluter has joined #ocaml
pierpa has quit [Ping timeout: 240 seconds]
dwwoelfe_ has joined #ocaml
nicholasf has joined #ocaml
dwwoelfel has quit [Ping timeout: 250 seconds]
dwwoelfe_ has quit [Ping timeout: 240 seconds]
nicholasf has quit [Ping timeout: 252 seconds]
nicholasf has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBird_ has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 252 seconds]
Algebr` has quit [Ping timeout: 250 seconds]
nichola__ has joined #ocaml
nicholasf has quit [Ping timeout: 250 seconds]
nyu_ has left #ocaml [#ocaml]
MercurialAlchemi has joined #ocaml
<struk|desk> ctypes is really awesome. quite impressed
fluter has quit [Ping timeout: 250 seconds]
Algebr` has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 258 seconds]
g0atz has joined #ocaml
Algebr` has quit [Ping timeout: 250 seconds]
fleaswallow has quit [Quit: Leaving]
<g0atz> How do folders factor into module naming? I'm pretty new to ocaml and am trying to open a module in a folder 1 level deeper than the source root
<g0atz> For ex. I have folder F inside src with a module a.ml inside of.
<g0atz> if I have a file b.ml in src (not in F), how do I refer to it?
<g0atz> it == a.ml
Algebr` has joined #ocaml
fluter has joined #ocaml
Algebr` has quit [Ping timeout: 250 seconds]
Algebr` has joined #ocaml
<Algebr`> gasche: sure, will do now
rgrinberg has quit [Ping timeout: 260 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
kushal has joined #ocaml
ygrek_ has joined #ocaml
MercurialAlchemi has joined #ocaml
pyon has quit [Quit: restart]
kushal has quit [Read error: Connection reset by peer]
pyon has joined #ocaml
p_nathan has quit [Ping timeout: 264 seconds]
darkf_ has joined #ocaml
silver has joined #ocaml
darkf has quit [Ping timeout: 250 seconds]
nojb_ has joined #ocaml
kushal has joined #ocaml
A1977494 has joined #ocaml
nojb__ has quit [Ping timeout: 244 seconds]
<Algebr`> Okay is this new or I just didn't know: let capit () =
<Algebr`> Alcotest.(check char) "Check A" 'A' (To_test.capit 'a') how is it that the closing paren for check comes at the right of char rather than at the very end of the entire expression
<jun__> here the parenthesis are only used to determine the scope in which Alcotest module is open
<jun__> it is equivalent to Alcotest.check Alcotest.chare "Check A" 'A' (To_test.capit 'a')
<Algebr`> jun__: I understand that, I'm saying why isn't the syntax extending the paren to the end of the entire line rather than ending at char
<Algebr`> why not: Alcotest.(check char "Check A" 'A' (To_test.capit 'a'))
<Algebr`> I guess its enough to be able to just figure out from the earlier )?
<Algebr`> a guess a its shorthand
FreeBird_ has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
<jun__> there is no point to open beyond what is needed
<jun__> anyway an application "f x y z w" is alway equivalent to "((((f x) y) z) w)" but none of the parentheses are mandatory
<jun__> the previous exemple is parenthesing (f x) y z w and use the scope defined theses parentheses to locally open a module
<Algebr`> right right
kushal has quit [Ping timeout: 240 seconds]
Simn has joined #ocaml
yunxing__ has quit [Ping timeout: 250 seconds]
Algebr` has quit [Ping timeout: 250 seconds]
mcc has quit [Quit: Connection closed for inactivity]
tinamanea has joined #ocaml
A1977494 has quit [Quit: Leaving.]
<tinamanea> hi! I have a module signature where I declare a type a and a function a -> something else. in the module implementation I define a as a tuple of few types and define the method accordingly, with a tuple as parameter. however, when I call the method with a tuple I receive and error about a type mismatch: expression has type ('c * 'd) but type a was expected, although a is defined as c * d. any idea why the compiler doesn't agree to
Algebr` has joined #ocaml
tmtwd has quit [Ping timeout: 258 seconds]
<companion_cube> tinamanea: you probably don't expose the definition of a
Algebr` has quit [Ping timeout: 250 seconds]
dexterph has joined #ocaml
darkf_ is now known as darkf
<def`> Algebr: merlin-extend provides a protocol for a custom frontend. Like -pp but adapted to merlin
AltGr has joined #ocaml
<tinamanea> companion_cube: I include the module where type a is defined with "include" in the module I'm using the method in. shouldn't it be exposed?
<lyxia> tinamanea: is the definition of the type exposed in the signature of your module?
<lyxia> is the module not defined using module M : SOME_SIG = struct ... end ?
<lyxia> that is, with an explicit signature which may not contain the definition of a
<tinamanea> yes, it is
<lyxia> so, "include" will not reveal the internals of the module
<lyxia> which are anything that's not in the signature
<lyxia> wait did you mean "yes it should be visible" or "yes it's defined with a signature that hides it" ?
<tinamanea> well, then it should know about the definition of a :(
<lyxia> why should it?
<tinamanea> because a is both in the signature and defined in the module
<tinamanea> the signature doesn't hide it
<lyxia> hmm, can you paste the code?
jwatzman|work has joined #ocaml
frefity has joined #ocaml
nichola__ has quit [Remote host closed the connection]
nojb_ has quit [Quit: Leaving]
nojb has joined #ocaml
<companion_cube> module M : SOME_SIG with a = foo*bar = struct ... end
nicholasf has joined #ocaml
nicholasf has quit [Remote host closed the connection]
frefity has quit [Quit: Ex-Chat]
<tinamanea> I think I found the issue. that method is not exactly used in a module, but in a functor. and the functor can't tell that the a is a tuple
<tinamanea> it would work after the final module creation
<tinamanea> that is, after the functor is called
A1977494 has joined #ocaml
g0atz has quit [Remote host closed the connection]
fluter has quit [Ping timeout: 264 seconds]
nicholasf has joined #ocaml
fluter has joined #ocaml
kolko has joined #ocaml
A1977494 has quit [Remote host closed the connection]
nicholasf has quit [Ping timeout: 264 seconds]
nicholasf has joined #ocaml
StrykerKKD has joined #ocaml
tinamanea has quit [Quit: Page closed]
adelbertc has quit [Quit: Connection closed for inactivity]
TheVoid has quit [Ping timeout: 260 seconds]
TheVoid has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
sdothum has joined #ocaml
d0nn1e has quit [Ping timeout: 260 seconds]
bobry has joined #ocaml
d0nn1e has joined #ocaml
nichola__ has joined #ocaml
nicholasf has quit [Ping timeout: 264 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
demonimin has quit [Ping timeout: 264 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
demonimin has joined #ocaml
FreeBirdLjj has joined #ocaml
larhat has quit [Quit: Leaving.]
nichola__ has quit [Remote host closed the connection]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
nicholasf has joined #ocaml
fluter has quit [Ping timeout: 258 seconds]
fluter has joined #ocaml
malc_ has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
wolfcore has quit [Ping timeout: 276 seconds]
wolfcore has joined #ocaml
darkf has quit [Quit: Leaving]
AlexRussia has joined #ocaml
fluter has quit [Ping timeout: 258 seconds]
rgrinberg has joined #ocaml
rgrinberg has quit [Client Quit]
rgrinberg has joined #ocaml
fluter has joined #ocaml
shinnya has joined #ocaml
vfoley has quit [Ping timeout: 260 seconds]
jwatzman|work has quit [Quit: jwatzman|work]
al-damiri has joined #ocaml
bobry has quit [Quit: Connection closed for inactivity]
sepp2k has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 272 seconds]
wiredsister has joined #ocaml
<Leonidas> anyone knows why opam behaves differently on two systems when it comes to pinning? https://github.com/jonase/eq/pull/1#issuecomment-225578753
<Leonidas> oh, got it
ncthom91 has joined #ocaml
SenseAmidMadness has joined #ocaml
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<SenseAmidMadness> Hello everyone! Is it possible to access variables defined in the _oasis file inside an OCaml module?
<SenseAmidMadness> I would like to use the "version" field in particular
<Drup> It's feasable, but annoying to do and need plumbing. I would use the lowtech version if I were you, and just add a manually updated version.ml
<companion_cube> erf
<companion_cube> you can use FileAB
<Drup> ah, I don't know about FileAB, maybe that's a good solution. I was thinking myocamlbuild trickeries
<Drup> (oasis could just generate a ml file instead of this setup.data ...)
BitPuffin has joined #ocaml
sh0t has joined #ocaml
<reynir> what's FileAB?
fedruantine has quit [Max SendQ exceeded]
<gasche> rgrinberg: I would pass it to all invocations of a command that supports the option
<gasche> so that it is more robust to extension of the semantics (inline C code? just kidding)
<gasche> but no strong opinion here
nicholasf has quit [Remote host closed the connection]
nicholasf has joined #ocaml
jwatzman|work has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 260 seconds]
<SenseAmidMadness> Thanks, I'll check OASIS FileAB...
th5 has joined #ocaml
jeffmo has joined #ocaml
struk|work has joined #ocaml
struk|work has quit [Client Quit]
struk|work has joined #ocaml
octachron has joined #ocaml
btbytes has joined #ocaml
<SenseAmidMadness> @companion_cube: Can't find documentation for OASIS FileAB anywhere.
<companion_cube> in the manual, at FilesAB
<companion_cube> there's not a lot of doc, I admit
<SenseAmidMadness> Ah, was searching for "FileAB", but it's actually "FilesAB"...
<SenseAmidMadness> The Oasis manual is terse to the point of uselessness. Is there an example out there?
<SenseAmidMadness> Okay, I found one example here: http://whitequark.org/blog/2014/04/16/a-guide-to-extension-points-in-ocaml/
fedruantine has joined #ocaml
<SenseAmidMadness> Thanks, Khady!
<Drup> hum, I should do that for some stuff, that's nice
A1977494 has joined #ocaml
ncthom91 has joined #ocaml
btbytes has quit [Quit: Textual IRC Client: www.textualapp.com]
btbytes has joined #ocaml
<SenseAmidMadness> Drup: Another nice feature underutilized due to poor documentation!
<SenseAmidMadness> Anyway, I've just tried it, and it works as expected.
tmtwd has joined #ocaml
sh0t has quit [Remote host closed the connection]
two_wheels has joined #ocaml
sh0t has joined #ocaml
<SenseAmidMadness> Only complaint about FilesAB is that it puts the generated files in the source tree.
<SenseAmidMadness> (Though OASIS is already guilty of this in other regards)
<companion_cube> documenting this better in oasis shouldb't actually be too hard
<companion_cube> the manual is a markdown file
<companion_cube> (and it's available by `oasis manual`!)
tmtwd has quit [Ping timeout: 276 seconds]
dave24 has joined #ocaml
btbytes has quit [Quit: Textual IRC Client: www.textualapp.com]
hcarty has joined #ocaml
kushal has joined #ocaml
dexterph has quit [Ping timeout: 244 seconds]
kushal has quit [Read error: Connection reset by peer]
nicholasf has quit [Remote host closed the connection]
yunxing_ has joined #ocaml
MercurialAlchemi has joined #ocaml
yunxing__ has joined #ocaml
yunxing_ has quit [Read error: Connection reset by peer]
A19774941 has joined #ocaml
A1977494 has quit [Ping timeout: 250 seconds]
SenseAmidMadness has quit [Quit: Konversation terminated!]
demonimin has quit [Remote host closed the connection]
two_wheels has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jwatzman|work has quit [Quit: jwatzman|work]
demonimin has joined #ocaml
slash^ has joined #ocaml
yunxing_ has joined #ocaml
yunxing__ has quit [Ping timeout: 250 seconds]
fedruantine has quit [Max SendQ exceeded]
wiredsister has quit [Ping timeout: 250 seconds]
lokien has quit [Quit: I was using a Free IRC Bouncer from http://bnc4free.com (Account Removed)]
rgrinberg has quit [Ping timeout: 244 seconds]
nicholasf has joined #ocaml
octachron has quit [Quit: Page closed]
fedruantine has joined #ocaml
rgrinberg has joined #ocaml
yunxing_ has quit [Remote host closed the connection]
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yunxing_ has joined #ocaml
mal`` has quit [Ping timeout: 244 seconds]
nicholasf has quit [Ping timeout: 240 seconds]
unbalancedparen has joined #ocaml
nicholasf has joined #ocaml
pierpa has joined #ocaml
rgrinberg has quit [Quit: WeeChat 1.5]
rgrinberg has joined #ocaml
rgrinberg has quit [Client Quit]
rgrinberg has joined #ocaml
unbalancedparen has quit [Ping timeout: 244 seconds]
<hcarty> Is there an equivalent to `opam-admin make -r` for compiler definitions?
<hcarty> ls
<hcarty> Bah, wrong window...
yunxing_ has quit [Remote host closed the connection]
yunxing_ has joined #ocaml
f[x] has joined #ocaml
ygrek_ has quit [Ping timeout: 244 seconds]
adelbertc has joined #ocaml
octachron has joined #ocaml
rgrinberg has quit [Quit: WeeChat 1.5]
unbalancedparen has joined #ocaml
fedruantine has quit [Max SendQ exceeded]
rgrinberg has joined #ocaml
mal`` has joined #ocaml
f[x] has quit [Ping timeout: 240 seconds]
ncthom91 has joined #ocaml
ncthom91 has quit [Client Quit]
sepp2k has quit [Quit: Leaving.]
rgrinberg has quit [Ping timeout: 244 seconds]
rgrinberg has joined #ocaml
StrykerKKD has quit [Quit: Leaving]
unbalancedparen has quit [Ping timeout: 276 seconds]
rgrinberg has quit [Client Quit]
rgrinberg has joined #ocaml
larhat has joined #ocaml
TheLemonMan has joined #ocaml
Denommus has joined #ocaml
kushal has joined #ocaml
rgrinberg has quit [Ping timeout: 276 seconds]
fedruantine has joined #ocaml
two_wheels has joined #ocaml
rgrinberg has joined #ocaml
two_wheels has quit [Client Quit]
dave24 has quit [Quit: leaving]
<tormen> Hi. Coudl someone tell me /why/ I can't get this little ocaml piece to compile... this drives me crazy :( https://paste.debian.net/738791/
<pierpa> I suppose you get an error message? you could paste it with the code, so as to help people wanting to help ot save time?
<tormen> About "(fn1 (Some r))" in line 16 I get the Error: This expression has type r option -> unit but an expression was expected of type unit
<tormen> pierpa: sure
<pierpa> ok
<struk|work> tormen: its the typical error where u use "function" but also define a variable binding for the function
yunxing_ has quit [Remote host closed the connection]
<struk|work> tormen: this works https://paste.debian.net/738794/
<tormen> ... redid my pasting in nicer ;)
BitPuffin has quit [Read error: Connection reset by peer]
<reynir> tormen: fn1 takes two arguments: r which is ignored and a second argument that you mathc on
<pierpa> tormen, it was ok. I just asked for the message to save time. In the paste or here is the same
<reynir> s/ignored/unused/
yunxing_ has joined #ocaml
<tormen> pierpa: ahhh when you use function the parameter is NOT named in the signature, right ?!
<pierpa> exact
<tormen> pierpa: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaarrrrrggggg
yunxing_ has quit [Remote host closed the connection]
<tormen> pierpa: I knew it was something basic
<tormen> F*ck
<reynir> fun and function are similar in that way
<tormen> reynir: can you explain ?
<tormen> reynir: because with fun I don't see how you can have an implicit parameter like for function ? ... or would fun | None -> ... | Some x -> ... work ?
<reynir> tormen: let fn1 x = fun y -> x + y and let fn1 x = function y -> x + y are equivalent
<tormen> struk|work: Merci beaucoup !
<reynir> (hm ok it's maybe not very helpful to think of it that way)
<tormen> reynir: ok. But with function you can have the implicit "match" but not with "fun" I assume, right ?
<tormen> reynir: ... still interesting to see function used in that way !
<pierpa> look at function as a shorthand for fun+match
<reynir> tormen: yes, function allows more than one match-case :)
<tormen> pierpa: okey thanks
<reynir> tormen: with fun you can still do matching: fun { x; y = [1] } -> x
<tormen> reynir: ... aaah
<reynir> (silly example with inexhaustive pattern)
<tormen> yes... sorry Ocaml newbie and still digging into everything.... sure, I see :))
<reynir> You can't write function x y -> x + y though
<reynir> Ah
<tormen> reynir: hmm so "function y" but not function "x y" ?
<tormen> (in your example further up you used "function y" ...)
<flux> fun x y -> is basically syntax candy for function x -> function y ->, except there can only be one pattern
<tormen> flux: very nice summary :)
<_y> i wish « fun » could allow general pattern matching too
<tormen> Thaaaaaaaaaaaaaanks a lot guys (and girls) !!! You rock. :)))) Cheerio
<struk|work> happy camling!
<tormen> yesssss :))) Extremely happy :)))) .... now that things can flow forward :))
<tormen> struk|work: Merci :)
<_y> so the only difference between « function » and « fun » would be than the latter would allow to match on several parameters (thus different parenthesing)
octachron has quit [Ping timeout: 240 seconds]
<Drup> seliopou: what's your opinion about the new format patch ?
<seliopou> there's a new format patch?
<Drup> it's an interesting approach, I kinda like it
two_wheels has joined #ocaml
<Drup> the code is not pretty, though, but that's not unexpected
two_wheels has quit [Client Quit]
<seliopou> It's essentially what I'm doing in friedman, where I was going to use this in the first place
<seliopou> so with respect to that, it's something I can use.
<seliopou> as a change to the format api, it's overengineered solution to a very simple problem.
<seliopou> i should really open-source friedman...
larhat has quit [Quit: Leaving.]
kushal has quit [Quit: Leaving]
slash^ has quit [Read error: Connection reset by peer]
<Drup> I think it's fine to have it directly in format, instead of rebuilding it outside
nore has quit [Ping timeout: 260 seconds]
nore has joined #ocaml
Kakadu has joined #ocaml
darkf has joined #ocaml
vfoley has joined #ocaml
nore has quit [Ping timeout: 260 seconds]
fedruantine has quit [Max SendQ exceeded]
nore has joined #ocaml
octachron has joined #ocaml
two_wheels has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 272 seconds]
soultadu has joined #ocaml
malc_` has joined #ocaml
two_wheels has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
malc_ has quit [Ping timeout: 260 seconds]
A19774941 has quit [Remote host closed the connection]
StrykerKKD has joined #ocaml
pyon has quit [Ping timeout: 258 seconds]
two_wheels has joined #ocaml
two_wheels has quit [Client Quit]
yunxing_ has joined #ocaml
yunxing_ has quit [Remote host closed the connection]
soultadu has quit [Remote host closed the connection]
two_wheels has joined #ocaml
two_wheels has quit [Client Quit]
struk|work has quit [Quit: Page closed]
rgrinberg has quit [Ping timeout: 240 seconds]
yegods has joined #ocaml
soultadu has joined #ocaml
pyon has joined #ocaml
yunxing_ has joined #ocaml
yunxing_ has quit [Remote host closed the connection]
octachron has quit [Quit: Leaving]
yunxing_ has joined #ocaml
<Algebr> companion_cube: okay nice, didn't know about oasis manual
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
th5 has quit []
nore has quit [Ping timeout: 244 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
sdothum has joined #ocaml
nore has joined #ocaml
shinnya has quit [Ping timeout: 252 seconds]
Simn has quit [Quit: Leaving]
AltGr has left #ocaml [#ocaml]
kolko has quit [Read error: Connection reset by peer]
yunxing_ has quit [Remote host closed the connection]
yunxing_ has joined #ocaml
rgrinberg has joined #ocaml
ncthom91 has joined #ocaml
hcarty has quit [Ping timeout: 252 seconds]
StrykerKKD has quit [Quit: Leaving]
sh0t has quit [Remote host closed the connection]
unbalancedparen has joined #ocaml
yunxing_ has quit [Remote host closed the connection]
yunxing_ has joined #ocaml
malc_` has quit [Quit: ERC (IRC client for Emacs 25.0.50.2)]
Kakadu has quit [Remote host closed the connection]
Kakadu has joined #ocaml
soultadu has quit [Remote host closed the connection]
sh0t has joined #ocaml
Kakadu has quit [Read error: Connection reset by peer]
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
yegods has quit [Remote host closed the connection]
kamog has joined #ocaml
unbalancedparen has quit [Ping timeout: 272 seconds]
madroach has quit [Ping timeout: 244 seconds]
vfoley has quit [Ping timeout: 244 seconds]
madroach has joined #ocaml
yegods has joined #ocaml
yegods has quit [Remote host closed the connection]
rgrinberg has quit [Ping timeout: 260 seconds]
yegods has joined #ocaml
yegods has quit [Remote host closed the connection]
yegods has joined #ocaml