Re: Is there a good way to handle multiple enemies who can effect each oth
@12, Rust sort-of has open unions via enums (I wouldn't use Unions unless you were desperate and had no other option). Enums have the non_exhaustive attribute so you can match those values you support, and then can create a match arm that matches everything else. In a way I like how Rust doesn't have truly "open" unions -- it makes code easier to follow and you can make an authoritative assertion that, when Discriminant x is matched, y will happen, instead of saying that when discriminant's x, y, and z match, a, b, and c happen, otherwise d happens.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector