-
Notifications
You must be signed in to change notification settings - Fork 0
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
comments on curl #2
Comments
hell yeah
🤷♂️ I'll drop the
yeah, absolutely!
I couldn't get setting If you try setting escape: libcurl::curl_easy_escape you'll get:
got it
👍
try to give a cleaner looking experience for curl options:
it is definitely tedious and probably unnecessary |
@aep when I try to name the project to |
Hmmm how would that solve it. Or how would it be different from just not calling it curl |
calling it
|
yes, i just dont understand how this relates to zetzit/zz#56 calling it something_curl or something::curl results in the same symbol name in rust people often rust something.rs so maybe curl_zz ? |
I have very limited experience in rust, just c/c++. I only bring zetzit/#56 up because namespaces of some kind could solve this with out having to prefix curl with Happy to do here what you think will be best for the future |
ah ok now i understand why you're bringing it up, thanks :) symbol namespacing do exist, and C++ and rust are using them. zetz intentionally does not use them, because C doesnt have them. It would only work when linking zetz with other zetz code, which is against the basic idea of zetz always emitting code that can be used directly in other projects without wrappers. I would suggest to name the curl wrapper something not "curl" then :) |
hell yeah I am glad that made sense. Yeah changing the name is the easiest thing to do! any suggestions? |
sounds good! |
🙌 |
first of all this is super useful.
probably a reason for me to make sure we have a website with disoverable modules soon.
https://github.com/zx-project/zx/blob/master/modules/curl/zz.toml#L3
i mean, why not just "curl". you're the first one to make a curl module, so just grab the name ;)
https://github.com/zx-project/zx/blob/master/modules/curl/tests/curl.zz#L15
any chance to use the err module here? In general let me know how you think errors can be improved.
https://github.com/zx-project/zx/blob/master/modules/curl/src/easy.zz#L30
why are these nessesary? this looks like something that needs improving in zz?
https://github.com/zx-project/zx/blob/master/modules/curl/src/easy.zz#L68
this should require
where buffer_lenght <= len(buffer)
for safety.
https://github.com/zx-project/zx/blob/master/modules/curl/src/easy.zz#L110
should require where nullterm(string)
etc
https://github.com/zx-project/zx/blob/master/modules/curl/src/options.zz#L3
this looks tedious. why are these necessary?
The text was updated successfully, but these errors were encountered: