Clean up and centralize "path access" functionality. #21
thorwhalen
started this conversation in
Ideas
Replies: 1 comment
-
|
In |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There are many "path access" functionalities out there, under different names and forms.
We really should clean this up and settle on one general mini-framework for this purpose.
Just to start with one: path_get is one that I'm about to deprecate since _path_get seems to be at a better level of generality.
There’s also a version of
path_get(same exact name) in s3dolI see even two more (very simple ones) in other projects.
And that’s just those matching the NAME path_get .
I’m sure there’s 2 to 3 times more of them with different names.
doldoesn’t even use thatpath_getfunction.Not even in its
add_path_getoradd_path_accessindol.trans. Instead, it just inlines the functionality with reduce: See hereNote: We talked about
path_gethere, but this just represents the read concern. We also should address the write and delete concerns (which add_path_access does, as a store decorator).More related stuff
Beta Was this translation helpful? Give feedback.
All reactions