Feb-13-2017, 03:07 AM
when i make a loop, i often need for the body of the loop to do something different or a little bit different in the first pass or the last pass. sometimes i need for the body of the loop to do something different in both, and in most of those cases the first and last passes are different from each other. i wish the evolution of programming languages had included this in its syntactical design. short of iterating on input from a dynamic source (pipe, socket, generator) it's not really hard to do this. iterating on a list, for example, is still done with some kind of indexing or queuing that can do this. even queuing can make it possible for most dynamic sources.
i'm recoding my pipeline stuff today. it involves a need where the first and last commands in the pipeline need special handling, but i'd like to have all the like handling be done by the same lines of code.
i'm recoding my pipeline stuff today. it involves a need where the first and last commands in the pipeline need special handling, but i'd like to have all the like handling be done by the same lines of code.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.