Using a bitwise operator for explicit conversions is a hack. The complicated answer you are giving is the exact reason for not doing it in the first place. Six months later someone (even the future you) will struggle to understand what you did.
Anyway, if you feel that it's better for you, continue with that but explain it with remarks in the code. The added remarks will be a lot more than writting it simpler. And you will do a big favor to the future you.
Naah, I only use it for small things. If I complicate it a lot, you're right I won't get it. As long as KeyStrokes are reduced & Code is easy to read, its all good like in the above post.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Using a bitwise operator for explicit conversions is a hack. The complicated answer you are giving is the exact reason for not doing it in the first place. Six months later someone (even the future you) will struggle to understand what you did.
Anyway, if you feel that it's better for you, continue with that but explain it with remarks in the code. The added remarks will be a lot more than writting it simpler. And you will do a big favor to the future you.
Naah, I only use it for small things. If I complicate it a lot, you're right I won't get it. As long as KeyStrokes are reduced & Code is easy to read, its all good like in the above post.