Joshua Hansen
02/13/2025, 11:26 PMChar.toInt() is kind of a silly decision. I'm assuming it's because it's ambiguous? If I want to convert a character between '0' and '9' to its literal int value of 0-9. is the best way myChar.code - 48?Joshua Hansen
02/13/2025, 11:27 PMmyChar.toString().toInt() better conveys intention.Joffrey
02/13/2025, 11:27 PMJoshua Hansen
02/13/2025, 11:28 PMtoInt() would be ambiguousJoffrey
02/13/2025, 11:28 PMChar.digitToInt() is the proper replacementJoffrey
02/13/2025, 11:28 PMtoInt was ambiguous so they decided to make it more clear