-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Expand the standard library #2411
Comments
Users have asked for:
(TODO: make separate issues for these) |
|
This was referenced Jun 2, 2020
Merged
|
This was referenced Jun 8, 2020
Merged
merged this into #5239 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The standard library has a batteries-included approach for the standard modules: List, String, Int, Float, Result, Option, UUID, Date, Dict, Bool, Bytes, DB, HTTPClient and HTTP (response) modules.
We generally copy the Elm standard library where it makes sense: https://package.elm-lang.org/packages/elm/core/1.0.5/. We no longer add functions that would make more sense in the package manager (such as calls to HTTP/REST/JSON APIs). We do add Crypto functions as they are very hard to do in userspace and have performance needs.
Contributions of just one function is very welcome, and is a great early bugs for contributors.
We have an internal document on how to write standard library functions, which I'll add to this ticket later.
This explains how to write docstrings: https://github.com/darklang/dark/blob/master/docs/writing-docstrings.md.
Requests for new functions should each be a separate issue.
https://github.com/darklang/dark/labels/stdlib
The text was updated successfully, but these errors were encountered: