4 ms·
What I liked the most about Pascal was the ability to have nested functions or procedures to keep things local to a large function or a large procedure. Visual
by mrlonglong 3y ago
What I liked the most about Pascal was the ability to have nested functions or procedures to keep things local to a large function or a large procedure.
Visual Basic lets me do the same. Can't do that with C/C++.
- DerekL 3y agoYou can do that in modern C++, except that you have to create a lambda and assign it to a variable.
- mrlonglong 3y agoThat's just syntactic sugar, but yes that works and I had forgotten about lambdas.
- fuzztester 3y agoPython allows nested functions too. Can't remember about Ruby.