Timeline for When can widening conversions cause problems?
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 18 at 21:29 | comment | added | gidds | FWIW, Kotlin treats this similarly, needing explicit conversions between byte/char/short/int/long/float/double in most cases. In my experience this is very occasionally annoying — but more often the extra safety is helpful, eliminating this whole class of subtle bugs. (And yes: clear, simple, straightforward code is a major goal!) | |
Jul 18 at 18:52 | history | edited | CPlus | CC BY-SA 4.0 |
Format code
|
Jul 18 at 18:52 | history | answered | feldentm | CC BY-SA 4.0 |