4 ms·
A bit of our “heritage” in programming destroyed by the C family of programming languages Pascal, like Algol, had nested subroutines for decomposing longer ope
by Roboprog 8y ago
A bit of our “heritage” in programming destroyed by the C family of programming languages
Pascal, like Algol, had nested subroutines for decomposing longer operations without leaking the details.
Nested functions is one of the things I like about JavaScript as well.
- Someone 8y agoC has static functions for decomposinglo ger operations without leaking the details. For better or for worse, taking advantage of that forces you to keep source files fairly short and cohesive in functionality.
- int_19h 8y agoYou are still leaking the details of the function that is the sole caller of those other functions. It's not leaking across translation unit boundary, but it's not the only one that matters.
- pjmlp 8y agoML derived languages, Julia, D and C# support them.