[Freeciv-Dev] Re: Unsafe assertions. (PR#864)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Gaute B Strokkenes wrote:
<snip discussion on assert(normalize_map_pos(&x, &y))>
> In the absence of any further evidence, it seems reasonable to assume
> that the original author actually bothered to have a look at what
> normalize_map_pos() before they decided to use it. So I think we may
> safely assume the former.
It is reasonable to assume that the programmer knew what
normalize_map_pos does.
It is also reasonalbe to assume that the programmer knew what assert
does.
However, one of these assumptions is wrong. I see no particular reason
to choose one above the other.
jason
|
|