▲ | eptcyka 5 days ago | |||||||||||||||||||
If the implications of a one char diff are this egregious that they’re considered obvious, maybe it should take less cognitive effort to spot this? CI and tooling are great, but would be far less necessary if it was more difficult to make this mistake in the first place. | ||||||||||||||||||||
▲ | kiitos 16 hours ago | parent | next [-] | |||||||||||||||||||
if you are programming in C++ then you have opted-in to a set of syntax and semantic properties that are ancient and well-defined and core to the language. those properties include at a very basic level exactly the sigil under discussion here. it is not productive or interesting to characterize this absolutely core property of the language as "a one char diff" that takes any kind of special cognitive effort to spot | ||||||||||||||||||||
▲ | Disposal8433 5 days ago | parent | prev [-] | |||||||||||||||||||
What do you suggest? Some kind of std::const_reference<Type>? Clang-tidy is enough in addition to the reviews. | ||||||||||||||||||||
|