Post B5BtzsZWM5sOXU889o by esden@chaos.social
(DIR) More posts by esden@chaos.social
(DIR) Post #B5BblWF8mI4m3hbHZQ by lethalbit@chaos.social
0 likes, 0 repeats
question for rust friends:When dealing with needing to encode a version number into an identifier (module name, enum member, etc) how do you go about doing it?I've been going `foo_1_5` or w/e, and I dunno, I don't like it, feels awkward, but I can't think of a better way
(DIR) Post #B5Bc5zOa6Ge4GSmEy0 by neocturne@chaos.social
0 likes, 0 repeats
@lethalbit I don't really have anything better, but I like including a `v` for version: `foo_v1_5`
(DIR) Post #B5BtzsZWM5sOXU889o by esden@chaos.social
0 likes, 0 repeats
@lethalbit I tend to prefix with a v. So foo_v1_5 but otherwise the same. And I don’t think about it twice, use the separators that are available and roll with it. 🤷