Comments (4)
Not sure I agree with this. E.g. if you're using yargs
it will look at process.argv
without having to pass it in.
We could totally do this, but it feels a bit unnecessary to me. Using process.argv
is fine, imo.
from effection.
There are two isues: convenience and isolation. Right now, we're forcing a program to couple to a global context for argument processing. That'll always be an option, but also passing in the arguments as an argument in this way let's your operation be used in any context, for example a unit-testing context.
from effection.
@cowboyd given that main
now also works in the browser, do you still feel we should do this, since there isn't really an equivalent to argv in the browser?
from effection.
@cowboyd given that
main
now also works in the browser, do you still feel we should do this, since there isn't really an equivalent to argv in the browser?
We could say []
in the browser, but I don't feel strongly about this. I say let's not do it now since it can be a forward compatible change if we decide to do it later, but it will not be a backwards compatible change if we decide we don't want it in the future
from effection.
Related Issues (20)
- Settle on API for `createSignal()`/`createQueue()` and `createChannel()` HOT 2
- Remove stream processing packages? HOT 1
- Beefed up `call()` function. HOT 4
- Make `each.next` operation a function HOT 3
- Error context is lost when caught by effection HOT 3
- Update v3 docs on `Scope`
- Add guide for Async integration HOT 1
- Add FAQ HOT 2
- Add opt-in to make `Promises` operations HOT 3
- Add `useWebSocket()` resource
- Add guide for using Context + Effects
- Finalize v3 docs HOT 1
- Determine order of operations for spawned code HOT 1
- Revisit having `Scope.run()` crash the frame if error leaks out of operation HOT 1
- 3.0 Public API review
- Effection examples HOT 2
- Unexpected return type for `all()` HOT 5
- Add ability to evaluate append an operation to the current frame
- Write a tutorial about "Build an Autocomplete with Structured Concurrency using Effection in React" HOT 19
- Reorganize Effection Documentation HOT 8
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 effection.