Re: Different views of the same fields

[email protected] (Aran Deltac) Fri, 16 Sep 2016 02:04:59 +0000
Newsgroups perl.moose
Message-ID <CAL5V4pHrMzNeeZi4w0t4hMG=Sqz58F4pK1jV6-G_WK4irnGLwg@mail.gmail.com>
--94eb2c14c78a55be9f053c966498
Content-Type: text/plain; charset=UTF-8

Seems to me that this is a view issue. In perl a NULL from the DB is
typically translated to an undef. If the view needs to show it as an empty
string then that should be the view's job, no other's.
On Thu, Sep 15, 2016 at 11:30 AM Victor Porton <[email protected]> wrote:

> For one the same object there may be several views: for example, in a
> "database" view empty fields may be signified by `undef` (to denote
> NULL in an SQL database) and in "UI" view they may be denoted as empty
> strings.
>
> Is my idea: new, is it viable? Is it (or will it be?) implemented?
>
> Tell anything you think about this idea.
>

--94eb2c14c78a55be9f053c966498
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Seems to me that this is a view issue.  In perl a NULL from the DB is typic=
ally translated to an undef.  If the view needs to show it as an empty stri=
ng then that should be the view&#39;s job, no other&#39;s.<br><div class=3D=
"gmail_quote"><div dir=3D"ltr">On Thu, Sep 15, 2016 at 11:30 AM Victor Port=
on &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; wrote:<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-=
left:1px #ccc solid;padding-left:1ex">For one the same object there may be =
several views: for example, in a<br>
&quot;database&quot; view empty fields may be signified by `undef` (to deno=
te<br>
NULL in an SQL database) and in &quot;UI&quot; view they may be denoted as =
empty<br>
strings.<br>
<br>
Is my idea: new, is it viable? Is it (or will it be?) implemented?<br>
<br>
Tell anything you think about this idea.<br>
</blockquote></div>

--94eb2c14c78a55be9f053c966498--