News for hackers. Stuff that matters.
Re:Git's list of banned C functions by cblconfederate on Thursday March 04, 2021 @06:57PM (#26350293)
thats probably because pointers are considered "hard" , too hard to exist in other languages. It's interesting that in the 80s, the standard library modeled C++ iterators with pointer semantics because they assumed everyone could do pointer arithmetic, but nowadays the concept is not mainstream at all.
Re:Git's list of banned C functions by InvOfSmallC on Saturday March 06, 2021 @05:09AM (#26366448)
But that's point right? I have two hours per week for a semester. So basically I tried to be really fast at the beginning with if else and loops, gave then an exercise that counted towards final score and then it was pointers and pointers related stuff.
Re:Git's list of banned C functions by kaba0 on Friday March 05, 2021 @03:53AM (#26354533)
I don’t think the reason for hiding pointers is because they are hard — it’s just that arbitrary pointer arithmetics are especially error prone and can be avoided in most codebases.
Re:Git's list of banned C functions by cblconfederate on Friday March 05, 2021 @09:31AM (#26357222)
well hard to get right anyway. in any case newer generations of programmers are less likely to be familiar with the pattern