Ok, cool. I thought so. I'll just change a function to not return a const value if I need it mutable in some places instead
Thats not a good practice. In my opinion, its better to consider the design and see if there's a way to achieve the desired mutability without compromising const-correctness