View Single Post
  #11  
Old 01-30-2009, 03:27 AM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Quote:
Originally Posted by Inverness View Post
Do you have a better syntax recommendation for showing the reader that you intend to use an object as an associative array, one that is an alternative to the current object.(@ "varname")?

Are you complaining about the syntax itself, or the suggestion?
The suggestion. Why should there be an alternate syntax?
An associative array is a mapping of series of keys to their values, which happens to be what a hash does.
The way Graal chooses to handle this is with subvariables. Introducing the alternate syntax would only make things more confusing and suggest that there is actually a difference between the syntaxes when there isn't.
Reply With Quote