let x%private = 1 is not supported right now in .res files. is it intentional, or will it be added in the future ?
or is it a different annotation ?
It is supported right now, just with the normal extension syntax.
%private in particular is something worth first-classing one day.
with firstname.lastname@example.org, I get an error with message
Did you forget a '=' here?
Have you tried
%%private(let x = 1)
Not the best syntax. We don’t have sugar for this yet.
Maybe it would be good to add it to the diff syntax page ? The new syntax isn’t obvious at all.
This is the natural result of translating the OCaml syntax, which is
[%%private let a = 3]. I doubt it’ll stick around for long so I don’t think it needs to go on the diff page.
understandable. also it’s the same with list, it’s a temporary syntax.
He was talking about the non-sugared version.
let%foo bar = az is the ocaml syntax sugar for
[%%foo let bar = baz]. Likewise
Sorry, yes, I worded that poorly. I was using
refmt to translate and forgot OCaml has sugar for it.