Miyako,

On Mon, Oct 1, 2018 at 1:29 PM Keisuke Miyako via 4D_Tech <
[email protected]> wrote:

> > This makes it easy to, say, iterate through each element. Beyond
> > convenience are you saying this is more efficient than using the full dot
> > notation?
>
> it depends on how frequently you force 4D to evaluate dot notation.
> for example.
>
> > For each($e;$myCol)
> >
> > End for each
>
> as opposed to
>
> > For each($e;$myObj.a.b.c)
> >
> > End for each
>
> is not that different, because $myObj.a.b.c is only evaluated once.
> same with
>
> > Use ($myObj.a.b.c)
> >
> > End use
>
> but if you know you are going to use the same sub-sub-sub object or
> collection multiple times,
> it makes no sense to have 4D re-evaluate the same static dot notation path
> over and over again.
>
Ah ha. Makes sense.
In general I'm thinking "multiple times" is hundreds if not thousands -
yes? Depending on the complexity of the root object.


-- 
Kirk Brooks
San Francisco, CA
=======================

*We go vote - they go home*
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to