-
Notifications
You must be signed in to change notification settings - Fork 30
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
API Roadmap #96
Comments
Thoughts/ideas just at a glance:
|
I think |
I don’t think it’s a good idea to move the sleep method to the Scheduler class. Firstly, it’s the fiber from which it’s called that sleeps, not the Scheduler which takes the opportunity to run the fibers in its list one after the other. Secondly, it would break a ton of code. I use it all the time (no pun intended). I have no strong feelings about the other proposed changes which have either not yet been included in a release version or will not have been used much anyway. |
There are solutions to that - deprecating, supporting both for a while, etc. :-) IMHO absolute rock solid backwards compatibility shouldn't really be a major goal at this point though.... considering we're still 0.3, not even 1.0. Individual releases should be stable and people should realize it's in active development and things may change when upgrading to a new release. I've gotten very used to semantic verionsion (only break things in major) but I think when you're pre 1.0 that each minor release can have breaking changes.
This is true, but:
In my mind scheduler is orchestrating the sleep... but I'm not super attached to moving it. IE: If we had found consensus that say |
Just curious, why not remove for both? This may be a windows vs unix thing though lol... wasn't windows |
Because, for better or worse, File.delete already exists and so you’d be breaking existing code for no good reason. If we were starting from scratch, I’d prefer remove myself though delete is fine too. |
Incidentally, I’m not suggesting that you should never make breaking changes in a language which hasn’t yet reached 1.0 and is still being heavily developed. However, I think there should be a good reason for doing so and, in the case of the sleep method, I think it would be inappropriate to put it in the Scheduler class anyway. |
A thread to track the overall API roadmap for the CLI.
IO
Directory
File
FileFlags
Stat
Stdin
Stdout
OS
Platform
Process
Scheduler
Timer
The text was updated successfully, but these errors were encountered: