News for hackers. Stuff that matters.
Re:Show HN: Fuse – statically typed functional programming l... by wavemode on Sunday August 02, 2026 @04:21PM (#49147928)
How do you define a trait that is itself generic? Like:

    trait ConvertTo[T]:
      fun convert(self) -> T;
Seems to create a single trait ConvertTo, for a generic type with a [T] argument, rather than allowing one to define separate implementations for ConvertTo[i32], ConvertTo[String], etc.

There are no comments on this comment yet.