You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using ppx, it should be rather easy to do. Something of the form:
{furl|foo.org/bar/%i*?babar=%f?|furl}
This would allow to keep a readable syntax while avoiding the value restriction, since we would build the value directly (instead of using the combinators).
For matching, something along the lines of
match%furl uri with|{|....|}xyz -> body
|_ -> default
The text was updated successfully, but these errors were encountered:
We could also use a similar syntax to provide labeled construction function but I'm afraid there will be weird constraints, much like Lwt_log's syntax extension.
Another issue is that I don't see how to compose existing piece of furl inside the ppx, which is pretty much the opposite of furl's objective.
Using ppx, it should be rather easy to do. Something of the form:
This would allow to keep a readable syntax while avoiding the value restriction, since we would build the value directly (instead of using the combinators).
For matching, something along the lines of
The text was updated successfully, but these errors were encountered: