<Anarchos>
d_bot depends on the 'Functor' real name
<Anarchos>
d_bot look at the module Set for examples
<d_bot>
<mbacarella> i'm trying to name a module that would contain a general set of functor makes
<d_bot>
<mbacarella> so,
<d_bot>
<mbacarella> ```
<d_bot>
<mbacarella> module Name_me = struct
<d_bot>
<mbacarella> module Foo = Thing.Make (Fa)
<d_bot>
<mbacarella> module Bar = Completely_different_thing.Make (Fa)
<d_bot>
<mbacarella> end
<d_bot>
<mbacarella> ```
<d_bot>
<mbacarella> i've been mentally calling it either `Entry` or `Combined` but that's unsatisfying
<d_bot>
<craigfe> I've used `Make_arg` in the past 😉
<Drup>
the result/output of a functor.
<d_bot>
<craigfe> Ah, the _result_. Skim read too fast.
<d_bot>
<mbacarella> result is way overloaded
<d_bot>
<mbacarella> in ocaml
<d_bot>
<mbacarella> hmm maybe i can just use result from other languages
<d_bot>
<mbacarella> Ergebnis
<d_bot>
<mbacarella> sounds cool
tane has quit [Quit: Leaving]
<d_bot>
<anmonteiro> `module AbstractBeanFactory`
<d_bot>
<anmonteiro> 🙈
<d_bot>
<Drup> @pilothole Ah, you are lookin for a naming convetion
<d_bot>
<Drup> well, `Foo.Make(A)` -> FooA or AFoo.
<d_bot>
<mbacarella> not exactly
smazga has joined #ocaml
<d_bot>
<mbacarella> it's probably too hard to nail down
<d_bot>
<Christophe> Is your module that combines stuff a functor also?
<d_bot>
<Christophe> Basically what you're trying to do, is that if the result of a functor is called a banana, you'd call your module something like `FaBananas`?
<d_bot>
<Christophe> (sorry for the banana acting as placeholder 😂)
<d_bot>
<Christophe> you could probably call it an image, as a functor is a module function, so how about `FaImages` or `Images`?
mxns has quit [Ping timeout: 240 seconds]
smazga has quit [Ping timeout: 264 seconds]
smazga has joined #ocaml
jnavila has quit [Quit: Konversation terminated!]
<d_bot>
<mbacarella> ok let me explain. there's a library called ctypes that lets you write pure ocaml to bind C functions. that part is easy though the build rules to set it up are long and mostly redundant. i'm working on a thing to generate the build rules for you. all you need to provide is
<d_bot>
<mbacarella> 1. a module 'functions' with a functor make filled out
<d_bot>
<mbacarella> 2. a module 'types' with a functor make filled out
<d_bot>
<mbacarella> 3. the name of an entry or result or combined module you want the completely instantiated two above functors bundled under
smazga has quit [Ping timeout: 240 seconds]
<d_bot>
<mbacarella> the third thing is what i'm having trouble naming. i'm using `generated_entry_point` as the config variable name
<d_bot>
<mbacarella> though that doesn't sound very satisfying
<d_bot>
<Drup> pick the name of the first file, capitalize it, and stick "Generated" after.