Skip to content

Commit

Permalink
Ideas
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanjermakov committed Apr 11, 2024
1 parent 919940a commit 1ef760a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions ideas.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
- Infer type parameters bounds in inherent impl def
https://rust-lang.github.io/rfcs/2089-implied-bounds.html
- `Char` should represent Unicode's grapheme, not a code point
Therefore, `String` is a `List` of graphemes
`Char` should provide methods `codePoints(): List<Int>` and `raw(): List<Int>`
- Infer type parameters bounds in inherent impl def https://rust-lang.github.io/rfcs/2089-implied-bounds.html
- Self referential structs/type params?
- Futures/promises more or less straightforward, but async/await is a leaky abstraction
- std::test
- Explicit type args on constructors, Option::Some<Int>(value: 5) or Option<Int>::Some(value: 5)?
First one follows grammar but misleading, since type params are type level, not constructor level
Second one more semantically correct, but will require vid scope to allow type args
- noisdoc
documentation testing: https://doc.rust-lang.org/rust-by-example/testing/doc_testing.html
- Explicit type args on constructors Option<Int>::Some(value: 5)
Require vid scope to allow type args
- Investigate strong sides of Swift

0 comments on commit 1ef760a

Please sign in to comment.