pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sad <sad@bankir.ru>
To: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: Gregory S. Williamson <gsw@globexplorer.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: feature request ?
Date: Thu, 24 Jun 2004 16:55:26 +0400
Message-ID: <200406241655.26065.sad@bankir.ru> (raw)
In-Reply-To: <20040624062119.Q87012@megazone.bigpanda.com>
References: <71E37EF6B7DCC1499CEA0316A256832801057B7C@loki.wc.globexplorer.net>
	<200406241104.15265.sad@bankir.ru>
	<20040624062119.Q87012@megazone.bigpanda.com>

>  If you were to add a NULL block you'd have to deal with things
> like, if you only have a then and else, do you run the else on NULL or do
> you do nothing?  If you do nothing, what if you want the null and else to
> be the same, do you add another way to specify that?  If you do the else,
> then the else stops making sense since it's sometimes false and sometimes
> not true.

it is only syntax problem.
really we have more than one way to continue execution if one block is skipped
so your are free to define IF's behavior any way, particularly the way it is 
defined now.

two-blocks IF is oviously enough to code ANY algorythm
but the three-blocks IF is more adequate to tri-valued BOOL






view thread (33+ messages)  latest in thread

Message-ID: <200406241655.26065.sad@bankir.ru>
Permalink:  ../200406241655.26065.sad@bankir.ru/
Also on:    postgresql.org/message-id/200406241655.26065.sad@bankir.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sad@bankir.ru, sszabo@megazone.bigpanda.com, gsw@globexplorer.com
  Subject: Re: feature request ?
  In-Reply-To: <200406241655.26065.sad@bankir.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox