3 ms·
Must be using C++ with references instead of pointers. Or perhaps variadic templates where you don't explicitly recurse - the compiler does the peeling of param
by 72deluxe 10y ago
Must be using C++ with references instead of pointers.
Or perhaps variadic templates where you don't explicitly recurse - the compiler does the peeling of parameters for you...
- codesushi42 10y agoI chuckled. I think OP and others in the thread completely missed the point. If you use a language with references, you're using pointers. I never said pointer arithmetic, dereferencing etc. Same with recursion. Yeah, implementing recursive calls in a language like Java is dumb. But tail recursion isn't. Nor is using an equivalent of a recursive algorithm using a stack or queue. If you don't think about these things, or don't know whether you do... you may be writing PHP