Skip to content

refactor: clarify matching for path comparison and add a docstring#6322

Merged
rgrinberg merged 1 commit intoocaml:mainfrom
voodoos:clarify-path-compare
Oct 25, 2022
Merged

refactor: clarify matching for path comparison and add a docstring#6322
rgrinberg merged 1 commit intoocaml:mainfrom
voodoos:clarify-path-compare

Conversation

@voodoos
Copy link
Copy Markdown
Collaborator

@voodoos voodoos commented Oct 25, 2022

I was searching for the ordering of the keys in a Path.Set and thought the pattern matching could be easier to read by refining some of the wildcards _.

I also added a docstring explaining how paths are compared. I wonder if it would be useful to add this information to Path.Set's description and to he ones of other collections over paths.

Signed-off-by: Ulysse Gérard <thevoodoos@gmail.com>
@rgrinberg rgrinberg merged commit c7256e8 into ocaml:main Oct 25, 2022
@Alizter Alizter mentioned this pull request Oct 27, 2022
jchavarri added a commit to jchavarri/dune that referenced this pull request Oct 27, 2022
* main:
  makefile: bind on 0.0.0.0 for livedoc (ocaml#6336)
  ci: rewrite fmt job (ocaml#6334)
  refactor(ci): cleanup names (ocaml#6335)
  fix: create fake socket rpc file on windows (ocaml#6329)
  refactor(doc): improvements to hacking.rst (ocaml#6324)
  ci: Add documentation job (ocaml#6333)
  Fix bug in drop_suffix (ocaml#6321)
  fix: public binaries with absolute build path
  test: public binaries in a cram test
  chore: update dune-project to 3.5 (ocaml#6328)
  chore(nix): add `devShells.slim` (ocaml#6327)
  test: remove obsolete bisect tests (ocaml#6318)
  refactor: clarify matching for path comparison and add a docstring (ocaml#6322)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants