Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Untillian Headache or about the semantic of until

by sundialsvc4 (Abbot)
on Feb 12, 2013 at 19:35 UTC ( #1018434=note: print w/replies, xml ) Need Help??


in reply to Untillian Headache or about the semantic of until

I’ve never had any problems wrapping my head around the concept of until.   And, I never particularly agreed with the language-purists who decried, say, the repeat .. until statement in Pascal.   As long as you clearly understand how a particular language implements the concept, it’s a perfectly sensible idea that we use all the time:   “get on the freeway and then keep driving until you get there.”   “Jump rope until you get tired of jumping.”   A programming language should easily support this very common notion.   The people who correctly point out that it is can be equivalently expressed in terms of while are stating a theoretically-correct point, but not a pragmatic one.   A language is a tool, built for me to get a ($$)job($$) done.   I don’t have to turn my thinking upside-down ... that’s what compilers are for.   It can “figure it out” well enough either way; therefore, it should.

  • Comment on Re: Untillian Headache or about the semantic of until

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018434]
help
Chatterbox?
[ambrus]: I think the minimal implementation here is just a timer and io function, plus pushing to the @REGISTRY.
[Corion]: ambrus: Yeah, at least that's what I think I'll start with. A timer and potentially the dummy IO function that never is ready
[ambrus]: That only lets you invoke the main loop from Prima->run;, not from AnyEvent->condvar- >recv; but that shouldn't matter
[Corion]: ambrus: Details ;)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2016-12-08 12:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (141 votes). Check out past polls.