News for hackers. Stuff that matters.
Re:Advent of Nim by mratsim on Thursday November 29, 2018 @09:49AM (#18560522)
That's bad naming, if those had the same type, that would lead to subtle hard to track bug because a dev used one pid instead of pId.
Re:Advent of Nim by JoeAltmaier on Thursday November 29, 2018 @10:05AM (#18560662)
Not in any typed language. Its instantly called out as an error.
Re:Advent of Nim by alehander42 on Thursday November 29, 2018 @10:17AM (#18560776)
But it's so hard to read: I admit a good IDE might help, but maybe it's not bad to prevent this on lang level.
Re:Advent of Nim by mratsim on Thursday November 29, 2018 @10:31AM (#18560890)
that's why I said if those had the same type ;)