Re: [RFC] path_join function
| From: | Tim Düsterhus | Date: | Wed, 17 May 2023 22:53:25 +0000 |
| Subject: | Re: [RFC] path_join function | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120334@lists.php.net to get a copy of this message | ||
Hi
Please do not "top-post". Instead reply inline and cut the quoted parts to a minimum.
On 5/17/23 23:49, php@shyim.de wrote:
No stripping would be needed at the end :)I don't follow then.
Yes I would like to work on an proper RFC and make thoughts on the already given feedback here :)Okay, let me add some additional questions for you to already think about: - Should the function perform file system operations? Why? Why not? - What is with stuff like Windows network shares that, to my understanding, have multiple directory separators next to each other? - Is the name of the function the best? I'd probably drop the underscore, because we already have 'pathinfo'. I'd also like to use this opportunity to add a "+1" with regard to "make this a proper class for manipulating paths, similarly to Python's pathlib or so". I would find that much more useful than the proposed function. Best regards Tim Düsterhus