Associated Statics - a way to have high performance, (mostly) statically dispatched event busses

Any static must have T: 'static. Associated/generic statics do so, too. Since any associated static can be desugared into a generic static, it requires the type to be 'static (for now, sadly).

This is assuming we don’t get any sort of HKTs. See also.

1 Like