Comments (2)
Hello! We don't move types to the prelude unless there is something that could not be implemented in userland, so option will not be promoted.
Option isn't used very much in Gleam compared to Rust so there's not much reason to add these methods, especially since it might give the wrong impression that you should use it in places where Gleam uses Result.
from gleam.
Hello! We don't move types to the prelude unless there is something that could not be implemented in userland, so option will not be promoted.
Option isn't used very much in Gleam compared to Rust so there's not much reason to add these methods, especially since it might give the wrong impression that you should use it in places where Gleam uses Result.
ok, thanks for quick reply, i had a vision from Rust for it, since i used Option a lot especially when i worked with TOML or json.
from gleam.
Related Issues (20)
- Compiler crash when checking exhaustiveness of a pattern on a type with duplicate variants HOT 2
- LSP: function hover info should include argument labels HOT 1
- error: Fatal compiler bug! Double records name is the problem HOT 1
- pipeline issue in 1.4.1 HOT 7
- Debug Adapter Protocol
- No output on js when pattern matching bit arrays HOT 5
- Improve error message for non-module-level functions with a name
- LSP doesn't work until the the first insert/edit command if the project directory name contains a period HOT 1
- Missing tests for UnusedLiteral and ImplicitlyDiscardedResult warnings HOT 5
- Improve error message for defining a `fn` inside `type` HOT 3
- Improve "Unknown module field" error message HOT 1
- Missing empty line between last warning and first error HOT 1
- LSP Code action: Add type annotations HOT 3
- Improve suggestions for inexhaustive case expression error HOT 6
- Fatal compiler bug HOT 2
- Improve `import a.b` suggestion HOT 5
- Unused import warning on constructor if type alias with the same name exists HOT 1
- Skip optional dependencies HOT 1
- LS suggests values when writing a function signature HOT 1
- Add a warning for single pattern case expression HOT 2
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 gleam.