A suggestion to LeetCode regarding Kotlin's backed data structures' member names

Hello, I recently started to practice leetcode with Kotlin.
When I stumbled upon problems using class ListNode, I realized it is defined as below:

class ListNode(var `val`: Int)  {
	var next: ListNode? = null
}

I understand that such member name "val" is possible by using backticks, but I think in general this is a bad practice in normal cases. Is there a reason why leetcode cannot but set the member name like this? If this is not an issue, wouldn't it be better to change the member name to unreserved identifier, so that people wouldn't have to use backticks?

Or is there a way to mitigate this and provide my own ListNode class? I assume not, but just in case..

Comments (2)