Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)
- From: LX-i <lxi0007@xxxxxxxxxxxx>
- Date: Mon, 06 Aug 2007 18:26:18 -0600
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
.
- Follow-Ups:
- Re: ALTER design (Was: Code problems with Perform Thru Exit causesfall through)
- From: Frank Swarbrick
- Re: ALTER design (Was: Code problems with Perform Thru Exit causesfall through)
- References:
- Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)
- From: Alistair
- Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)
- From:
- Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)
- From: Alistair
- Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)
- From: Doug Miller
- Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)
- From: Alistair
- Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)
- From: Doug Miller
- Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)
- From: Alistair
- Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)
- From: Howard Brazee
- Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)
- From: Doug Miller
- Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)
- From: Howard Brazee
- Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)
- From: Frank Swarbrick
- Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)
- Prev by Date: Re: pondering evaluate
- Next by Date: Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)
- Previous by thread: Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)
- Next by thread: Re: ALTER design (Was: Code problems with Perform Thru Exit causesfall through)
- Index(es):
Relevant Pages
|
Loading