Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)



Frank Swarbrick wrote:
I'm kind of a fan of Ruby's "unless" expression. (I'm sure other languages
have it as well:

unless condition
do_something()
end

Very nice. :)

Getting back to COBOL, I wonder what others think about this:

EVALUATE CONDITION
WHEN FALSE
PERFORM MY-PARAGRAPH
END-EVALUATE

I had never tried that... Cool!

In some ways EVALUATE simply makes IF redundant. The only thing IF saves
you is a small amount of typing.

This is true. Were I still doing COBOL every day, I believe I would find myself doing fewer and fewer IFs and more EVALUATEs. They're just so easy to change (IMO), especially when you have a system that has lots of convoluted business rules to placate different user groups... er, I mean, maintain the complex and intricate rules that uninitiated folks like me couldn't possibly grasp... er, no, that's not it either... :) You know what I mean.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ / \/ _ o ~ Live from Albuquerque, NM! ~
~ _ /\ | ~ ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ Business E-mail ~ daniel @ "Business Website" below ~
~ Business Website ~ http://www.djs-consulting.com ~
~ Tech Blog ~ http://www.djs-consulting.com/linux/blog ~
~ Personal E-mail ~ "Personal Blog" as e-mail address ~
~ Personal Blog ~ http://daniel.summershome.org ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

GEEKCODE 3.12 GCS/IT d s-:+ a C++ L++ E--- W++ N++ o? K- w$ !O M--
V PS+ PE++ Y? !PGP t+ 5? X+ R* tv b+ DI++ D+ G- e h---- r+++ z++++

"Who is more irrational? A man who believes in a God he doesn't see,
or a man who's offended by a God he doesn't believe in?" - Brad Stine
.



Relevant Pages

  • The Rockin Eve is coming
    ... not even as in I am a god. ... Grand. ... To get the new topics going: Practice typing in the dark (you won't ... Wagging your eyes at me after saying they'll fix the computer ...
    (sci.med.diseases.lyme)
  • A Trip Through Paradise
    ... You did your best with the amount of light ... and did not assail your fellow man just to make yourself look ... The angel takes you into a castle, ... So God says...all forgiven. ...
    (alt.religion.christian)
  • The IQ and brain power of the Designer?
    ... I have to sonder - just how intellignet is the Designer? ... amount of knowledge of chemsitry and physics, ... Or it was somethinhg they call 'God' - but how does he do it? ... walked upon water like a true magician. ...
    (talk.origins)
  • Re: Curious about the 2PD-OMER Approach.
    ... can eat 2 pds of anything per day. ... Then how can you recommend an approach if only God knows what the person ... amount of food for everyone. ...
    (sci.med.cardiology)
  • Re: clinton surgery question
    ... but also free will in being able to act on them. ... God sure isn't; thanks for pointing that out in these discussions which, ... > reducing the amount of evil in the world, there will be just the right ... there's still the right amount of suffering. ...
    (sci.med.cardiology)

Loading