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

I would say it becomes an abstraction when it needs parameters in addition to the nominal arguments. So in the case of "addThreeTimes(i)", sure, that's just abbreviation, but "addNtimes(i,N)" is a bona-fide abstraction.

Edit: Reminds me of the distinction between inheritance and subtyping: https://www.cs.utexas.edu/users/wcook/papers/InheritanceSubt...



I agree with your point and your edit. The inheritance thing is very similar to what I'm talking about!




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

Search: