Join Nostr
2026-02-03 14:40:51 UTC

dakkar on Nostr: I'm learning Rust on company time apparently the way I learn Rust involves, among ...

I'm learning Rust on company time

apparently the way I learn Rust involves, among other things, spending an hour fiddling with the trait bounds to write:

```rust
use std::ops::Sub;
fn diff<X,Y>(x: X, y: Y) -> <X as Sub<Y>>::Output
where X: Sub<Y>
{
x - y
}
```

but hey, now I know