Strings are terrible representations for file paths. You end up having to do way more work to process them when you're passing it around. Extracting extensions, basenames, crawling up the directory chain etc.
-
Show this thread
-
I wrote a file path library for Rome where you construct a FilePath instance. It memoizes work, and you use methods to create derivative paths. eg. adding on an extension (useful for module resolution) etc.
5 replies 0 retweets 33 likesShow this thread -
It understands the mutations and can efficiently create a variant with the previous memoized work.
3 replies 0 retweets 12 likesShow this thread -
Replying to @graingert
No idea! Never used it before.
12:33 PM - 20 Aug 2019
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 