CGAL / cgal

The public CGAL repository, see the README below
https://github.com/CGAL/cgal#readme
Other
4.87k stars 1.38k forks source link

Strange / confusing code style #8399

Open albert-github opened 1 month ago

albert-github commented 1 month ago

I saw a very strange coding style (strange place for the !) in "HalfedgeDS/include/CGAL/HalfedgeDS_const_decorator.h" around line 136

    while( e != hds->halfedges_end() && ! e->is_border() && !
           e->opposite()->is_border()) {
afabri commented 1 week ago

Shall we grep for more trailing ! or just fix this one occurence ?

albert-github commented 1 week ago

I'd say always do a grep. I did a quick grep and looks like (to me) the following are also suspicious