This syntax applies to all collections (_form, _query, globals, and user-created collections). I'm just wondering -- who is using the new syntax? If not, is it because you don't know about it or don't feel comfortable with it?

In my case it is mainly because I forgot you can do that. Probably read an old example and used the old syntax and have done ever since. The new syntax is much clearer.

In fact I use the new syntax for other collections like _form.

M.

On 22 Sep 2005, at 13:18, Aparajita Fishman wrote:

Hi,

It seems very few people are using the modern (v3) collection referencing syntax:

  session{"foo"} := "bar"
  $foo := session{"foo"}

instead of:

  set session("foo"; "bar")
  $foo := get session("foo")

To me the first syntax is clearer and much more natural, as soon as you think of a collection as an associative array that is being indexed by a text key instead of a number like 4D arrays.

This syntax applies to all collections (_form, _query, globals, and user-created collections). I'm just wondering -- who is using the new syntax? If not, is it because you don't know about it or don't feel comfortable with it?

Regards,

   Aparajita
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com


_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/


_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to