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/

Reply via email to