-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename //multipart/multipart.ts to //mime/multipart.ts #412
Comments
How about should it rename to |
I was thinking the same - but we should search Go's std lib to see if there's a corresponding structure. |
Yeah, the only objection is that mime is very antiquated term. Can I blame Go for being stuck in the early 2000? |
Agree. See: https://tools.ietf.org/html/rfc6838 |
Nevertheless, I think it will be easier if we stick to Go structure as much as possible. So Let's move meda_type stuff into mime. |
To be somewhat impertinent, I would never have known that Go uses |
@kitsonk Could you have a look at the documentation for https://golang.org/pkg/mime and let me know if it is trying to accomplish the same thing as our For example Although the naming might be anachronistic, pushing our code towards the Go directory structure and naming allows us to leverage high quality tests, documentation, and APIs. This is very helpful for organizing deno_std, because I (the reviewer) cannot be an expert in the myriad things we want to accomplish with this library (without dedicating a lot of time to it). However, if an API is in-line with Go's and has the same tests, I know it's more or less sane without thinking to hard (i.e. dedicating a lot of time to researching it). I think of the Go standard lib as an intellectual scaffolding for deno_std. See the statement I recently added to the readme. |
@ry it certainly is similar, but the APIs in I get your point, I just wanted to vent my spleen a bit. 😁 I understand what you've added to the readme, don't know if I wholly agree with it, but I am not going to walk away in a huff. It just feels a bit constraining if anything. |
I agree with both of you. But atm staying more close to golang std give us the availability to port their tests cases and have a better coverage of the code. Illustration here: #419 |
@kitsonk Actually ya the fact that media_types is an oft used API is good enough to not change it. |
As is done in Go https://golang.org/pkg/mime/multipart/
The text was updated successfully, but these errors were encountered: