Comments (3)
Thank you for the feedback. While merging the functions is not impossible -- in fact, that indeed was the original idea -- for the very valid concern that it could and will present an issue with Toaststunt's current limitations, I would argue that doing so would actually reduce complexity and maintenance.
Such a function possessing numerous responsibilities would inherently become unwieldy, especially when you consider adding yet more behavior. Generally accepted design patterns encourage short -- focused functions in place of lengthy ones. Which is not to say there should never be exceptions, but rather to explain the thought-process behind it.
I do agree that space should be left in the implementation for eventually specifying protocol(HTTP, FTP, GOFER, IMAP... etc) and welcome more discussion on how we could make that a reality. Adding additional arguments? With all that above stated, I am open to discuss and adjust accordingly.
If you were curious where I drew my design concepts from: https://google.github.io/styleguide/cppguide.html
from toaststunt.
Merging these into a single builtin would be more ideal for reduction of complexity, maintenance, and the currently imposed function table limit. There are other options that we may want from curl in the future outside of HTTP methods as well; as such, I propose converting the second argument in the curl()
builtin to an option map instead, where these changes to the behavior can be defined. include_headers
can be folded into this second argument.
from toaststunt.
I was thinking the exact same thing as what @distantorigin has written. Single function with an options-map that resembles curl-parameters
from toaststunt.
Related Issues (20)
- MySQL / MOO SQL bf? HOT 8
- Network Buffer Overflows Closes TLS Connections
- toobj() HOT 4
- Feature request for the ability to force-invalidate WAIFs HOT 2
- Background Threads Suspend / Threading Issues HOT 6
- random() - range doesn't allow negative numbers HOT 1
- [Feature Request] Bloom Filter Set/List Intersection HOT 4
- Sqlite_Execute will not return runtime errors.
- Build fails on macOS Monterey/12.0.1 HOT 2
- Thoughts on the preserve newlines patch
- Can't build if LOG_COMMANDS defined
- :user_disconnected not being called with correct connection object on server restart HOT 1
- Expose verb AST with new verb_ast builtin. HOT 1
- Crashes with TLS defined HOT 8
- Large telnet option sequences are not properly processed
- Binding in listen()
- Feature Request: Support for Web Sockets
- Panic with sqlite_query HOT 1
- Seaking an experienced eye over additional prepositions and modernising the MOO language to support compound assignment HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toaststunt.