Hi, I recently started <a small Kotlin project> fo...
# codereview
e
Hi, I recently started a small Kotlin project for the "Build Your Own Interpreter" challenge. It's purely for practice and has no open-source value. If you have time, I’d appreciate any feedback on Kotlin idioms, readability, and best practices. Tests aren’t fully implemented yet — I'll add them once the overall structure is settled. Thanks!
k
Just a very minor point: I only looked at a random file, as I didn't have time to look at it more thoroughly, and found
fun Char.isNumberChar() = isDigit() || this == '.'
. The
isDigit()
method includes digits in all languages; for example,
'१'.isDigit()
is true, but the language only accepts the ASCII '0' to '9' as valid digits for number literals.
gratitude thank you 1
1