-
This issue is a proposal for adding lower bounds on type parameters of functions and methods. They are supported in, for instance, [Scala](https://docs.scala-lang.org/tour/lower-type-bounds.html), and…
-
## Search Terms
- Array.map
- map tuple
## Suggestion
Using Array.map on a tuple should return a tuple instead of an array. In one of my projects I could achieve that using
```typescript
…
zroug updated
1 month ago
-
Two words also used in the functional programming world!
-
Some context can be found in [this comment](https://github.com/rust-lang/rust/issues/96194#issuecomment-1124745154).
We would like to support using higher kinded lifetimes in opaque types.
At p…
-
- [ ] Add a trait with one associated type
```
trait Collection[c] {
pub type Elm: Type
pub def empty(): c
pub def add(e: Collection.Elm[c], c: c): c
pub def toList(c: c): List…
-
In #5 you discuss `Show` instances, they can be implemented using `ForallT` as in [this comment](https://www.reddit.com/r/haskell/comments/52f77p/how_would_you_express_the_free_category_in_haskell/d7j…
-
Simplifying from @b-studios https://github.com/lampepfl/dotty/issues/4376#issuecomment-459064857:
```scala
scala> object existentials {
|
| sealed trait Exists { type R }
| typ…
-
As a result of adjusting the design to account for any nom parser that ingests either &[u8] or &str, the Error type parameter is now broken in the sense of being unspecifiable (you cannot write Error …
-
# Suggestion
Pertaining to the discussion in #1213 and having looked at [similar suggestions](https://github.com/microsoft/TypeScript/issues?q=is%3Aissue+is%3Aopen+label%3ASuggestion+higher+kinded+…
-
With higher-kinded types and multiple parameters to traits, we can implement many of the widely used Haskell typeclasses and types in Fir.
However currently we don't have a syntax for contexts, and…