Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64542 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26190 invoked from network); 5 Jan 2013 10:27:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2013 10:27:25 -0000 Authentication-Results: pb1.pair.com header.from=crocodile2u@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=crocodile2u@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.54 as permitted sender) X-PHP-List-Original-Sender: crocodile2u@gmail.com X-Host-Fingerprint: 209.85.215.54 mail-la0-f54.google.com Received: from [209.85.215.54] ([209.85.215.54:59240] helo=mail-la0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/1D-38386-C0008E05 for ; Sat, 05 Jan 2013 05:27:25 -0500 Received: by mail-la0-f54.google.com with SMTP id fp12so11191259lab.27 for ; Sat, 05 Jan 2013 02:27:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=u344hNbT5qC/3sIi2QI7wEtOcOBNPtJ8XbVKpqWsZiA=; b=wjmdiHi95HhaE5j+gMlLI46uY263LArJe3dULd7ozi98LcO6qSXg2Cd7CtkDRqGpzM ywT8H2hrp5b0twPlqwFJLOWw5v8CK7PcSluMdosa2QEFQJu4LyU3PRypNXd6TBdN8/KW ETRkIsy6IR4sWFECAO0ocMauOi9/++px6g7q0tar/ka85QR5DkJePw5kwK+hcPxEvxpK pqdEE/C68EPUfgEur31swctWT54BBiEQXtVeeAiytienowmNeEOUL3hlWCxivQRnRsYJ ywAl25fDj3OyYMwmniMVsUm0K+Hj9vmPkD1zd4NpAZV6ybZSZPbXnGHzJAL2o0MO0vAN e7vw== Received: by 10.152.127.202 with SMTP id ni10mr52539222lab.6.1357381642094; Sat, 05 Jan 2013 02:27:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.24.6 with HTTP; Sat, 5 Jan 2013 02:27:01 -0800 (PST) In-Reply-To: References: Date: Sat, 5 Jan 2013 14:27:01 +0400 Message-ID: To: Nikita Nefedov Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=f46d042c6aeb9a07a804d2880a7a Subject: Re: [PHP-DEV] Ruby's symbols From: crocodile2u@gmail.com (Crocodile) --f46d042c6aeb9a07a804d2880a7a Content-Type: text/plain; charset=ISO-8859-1 Sounds like it could make some sense. However, I've got a question.. array( 'label' => 'Comment', 'required' => false, 'property_path' => 'properties.comment' ) is actually equivalent to array( 'label' => 'Comment', 'property_path' => 'properties.comment', 'required' => false, ) (Notice the change in keys order. As long as we just use those arrays as hash maps, we notice no differences). With symbols, which act as aliases for integer array keys, the situation could be different, right? Or excuse me if I don't get what symbols are (I don't know much about Ruby) Cheers, Victor 2013/1/5 Nikita Nefedov > array( > 'label' => 'Comment', > 'required' => false, > 'property_path' => 'properties.comment' > ) > --f46d042c6aeb9a07a804d2880a7a--