[ANN] Khepri 0.2.1 - A tree-like replicated on-disk database library

Frank Muller frank.muller.erl@REDACTED
Sat Feb 19 16:36:59 CET 2022


Thanks for the tip! Simply awesome feature.
parse_transform would be preferable to save CPU cycles IMHO.

/F.


> On 19/02/2022 10:39, Frank Muller wrote:
> > Would it be possible to have a syntactic sugar(parse_transform)  for
> > wildcards:
> >
> > Ret=khepri:get("/stock/wood/_"
> >
> > instead of:
> >
> > PathPattern=[stock,wood,#if_node_matches{regex=any}].
>
> Hi!
>
> String-based paths are already supported:
>
>      1> khepri_path:from_string("/shoe/*/flipflop").
>      [shoe,{if_name_matches,any,undefined},flipflop]
>
> Most functions in the `khepri` module accept string-based paths. The
> `khepri_machine` functions don't however.
>
> I have plan to greatly improve the syntax and make `khepri_machine`
> accept string-based paths too so the API is uniform.
>
> That said, those paths are parsed at runtime. Would you find it
> convenient to have a parse_transform module so they are parsed at
> compile time?
>
> --
> Jean-Sébastien Pédron
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20220219/2d128389/attachment.htm>


More information about the erlang-questions mailing list