Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No. Recursion can terminate and still be called recursion.

(news.yc used to be a Lisp hangout)



If you read the OP carefully, you'll see he's quite aware of the terminology.

There really isn't any recursion in that XML snippet, none of the entities refers to itself, directly or transitively. If there was, the file would be invalid and the error probably caught by the parser before dying from memory exhaustion. There's no way to terminate recursion in XML entities.


Not sure if you could abort an recursion in XML.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: