Elektrine lite

← Feed

@chrysn@chaos.social

Post #3126218

2026-05-27 07:10 UTC

@oli@hachyderm.io Awesome, thanks for pushing this. I was hoping for ranges stabilizing, but seeing that pattern types are the more powerful variant and apparently more feasible to handle in language development, I'll now root for them on the long path through an RFC towards stability.

Replies (1)

  • @chrysn@chaos.social 2026-05-27 07:55

    Concretely, I'm looking forward to using this when wrapping C libraries that return errors in negative isize. When ranges or pattern types are exploitable in stable, a Rust wrapper could return `Result, NegativeError>` for idiomatic error handling while being no-op (the best form of zero-cost).

    Open ##3126219