<Leonidas>
If I want to define attributes on Variants, how should I get their values? I remember I have to register somewhere that I have seen them so they can be marked as used?
notnotdan[m] has quit [Ping timeout: 256 seconds]
<Leonidas>
oh, Attribute.declare and Attribute.get :)
goji has joined #ocaml
goji has quit [Client Quit]
<Leonidas>
What is a "structure item"? It seems `let () = ()` is one.
<Leonidas>
is it like "stuff you can write at the top level"?
<companion_cube>
a toplevel binding or evaluation, yes
<companion_cube>
an item in a `struct end`, also
AnAverageHuman has joined #ocaml
<Leonidas>
okay, then to define multiple functions I probably need two structure items
<companion_cube>
unless it's with `and`
<Leonidas>
I could also do silly stuff like let (foo, bar) = (fun …, fun …).
<companion_cube>
it's not silly, but just a bit weirder
<ggole>
let f x = () and g x = ()
<Leonidas>
I don't really like to use 'and' when there is no mutual recursion
<companion_cube>
aren't you writing a ppx?
freyr69 has quit [Remote host closed the connection]
<Leonidas>
but I need to return a structure so I can just as well return a list of structure items
<ggole>
I agree about and, but I don't think readability is much of a concern in macro expansions
<Leonidas>
true, but I can probably just make 2 structure items and not do any silliness :-)
Redfoxmoon_ has quit [Changing host]
Redfoxmoon_ has joined #ocaml
Redfoxmoon_ is now known as Redfoxmoon
<Leonidas>
I was mostly wondering whether I understand what a structure item is
<ggole>
It's a variant of the 'phrases' that can appear at top level, aiui
<ggole>
Have you looked at the output of -dparsetree?
<ggole>
It's easy to check things in the toplevel.
<Drup>
Leonidas: the advantage of `and` is that you avoid one being in scope of the other.
<Drup>
let ... and ... is very useful when writing ppxs to control the lexical scoping precisely
xqb16141 has quit [Quit: WeeChat 2.4]
lokydor has joined #ocaml
sz0 has joined #ocaml
xqb16141 has joined #ocaml
xqb16141 has quit [Client Quit]
moolc has joined #ocaml
AxiomaticEspress has joined #ocaml
AxiomaticEspress has quit [Quit: WeeChat 2.4]
AxiomaticEspress has joined #ocaml
ollehar has quit [Ping timeout: 246 seconds]
q9929t has joined #ocaml
AnAverageHuman has quit [Ping timeout: 256 seconds]
AxiomaticEspress has quit [Client Quit]
AxiomaticEspress has joined #ocaml
q9929t has quit [Quit: q9929t]
AxiomaticEspress has quit [Quit: WeeChat 2.4]
AxiomaticEspress has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
AxiomaticEspress has quit [Client Quit]
AxiomaticEspress has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 246 seconds]
ygrek has joined #ocaml
AxiomaticEspress has quit [Quit: WeeChat 2.4]
AxiomaticEspress has joined #ocaml
ziyourenxiang has quit [Ping timeout: 272 seconds]
barockobamo2 has joined #ocaml
AxiomaticEspress has quit [Quit: WeeChat 2.4]
AxiomaticEspress has joined #ocaml
barockobamo has quit [Ping timeout: 272 seconds]
Haudegen has quit [Remote host closed the connection]
<Leonidas>
Uri is defined above and to_bigquery_protocol can be found just fine
<Leonidas>
if I remove to_bigquery_protocol then compilation fails as expected, so the other generated code seems to be able to reference the Uri module just fine
nowl has joined #ocaml
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ravenousmoose has joined #ocaml
asymptotically has quit [Remote host closed the connection]
asymptotically has joined #ocaml
AxiomaticEspress has quit [Quit: WeeChat 2.4]
AxiomaticEspress has joined #ocaml
<Leonidas>
Nevermind, I found the issue, it turns out opening modules willy-nilly like Mod.{} can bite you :(
al-damiri has quit [Quit: Connection closed for inactivity]
nowl has quit [Quit: Leaving]
AxiomaticEspress has quit [Quit: WeeChat 2.4]
AxiomaticEspress has joined #ocaml
AxiomaticEspress has quit [Client Quit]
AxiomaticEspress has joined #ocaml
Haudegen has quit [Remote host closed the connection]
sonologico has joined #ocaml
unyu has quit [Quit: ERC (IRC client for Emacs 26.1)]
Serpent7776 has quit [Quit: leaving]
Guest69559 has joined #ocaml
Guest69559 has quit [Read error: Connection reset by peer]
Haudegen has joined #ocaml
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbifx has joined #ocaml
kakadu_ has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 245 seconds]
artart78 has joined #ocaml
tane has quit [Quit: Leaving]
seastack has joined #ocaml
spew has quit [Quit: Connection closed for inactivity]
asymptotically has quit [Quit: Leaving]
orbifx has quit [Ping timeout: 250 seconds]
Haudegen has quit [Remote host closed the connection]