// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
contract C {
// omitted name for parameter
function func(uint k, uint) public pure returns(uint) {
return k;
}
}
The code above has two parameters: k
and another unnamed parameter.
What is the point of having an unnamed parameter?
One use case I can think of is function overriding but what else can it be used for? Is it okay if we won't pass unnamed parameter?