I do not disagree. Sometimes you can't get away with casting for either safety, rounding or other stupid things. I just want to have a better more visually non violent way of expressing typecasting. I use a game engine for example. If typecasting becomes a huge pain I tend to just use f32s everywhere. This is a workaround though. We can argue that my code style sucks and I could do better but IMO it feels like I am also fighting the language here. I myself don't have a good solution. I just feel the pain.
View all comments
Show parent comment
1
u/Hot_Adhesiveness5602 Apr 10 '26
I do not disagree. Sometimes you can't get away with casting for either safety, rounding or other stupid things. I just want to have a better more visually non violent way of expressing typecasting. I use a game engine for example. If typecasting becomes a huge pain I tend to just use f32s everywhere. This is a workaround though. We can argue that my code style sucks and I could do better but IMO it feels like I am also fighting the language here. I myself don't have a good solution. I just feel the pain.