Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64569 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23521 invoked from network); 5 Jan 2013 23:32:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2013 23:32:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.220.178 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.220.178 mail-vc0-f178.google.com Received: from [209.85.220.178] ([209.85.220.178:58853] helo=mail-vc0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/3B-62408-108B8E05 for ; Sat, 05 Jan 2013 18:32:17 -0500 Received: by mail-vc0-f178.google.com with SMTP id l6so4011361vcl.23 for ; Sat, 05 Jan 2013 15:32:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=CTqO2EIyaGdm8i1R/udT/oROk4yz0BaUW/3Fmnne5W4=; b=E2rItkrYpn0Sjv1HSKPve7d272eR1fpKbZ8GyOQVDc9iR3K/s4GkVDUucCQQAX3f2S 8erTfGbqhY17q7lk59nc2PPItfvsrMmpGoouZ/9b0oiBmly8jkEfGtPcH15ND533uD3M OtHgxn2IU+lEJPETpFilhwLEaNYUtCmlUU9qauyycyUkGRonDGkXWf29hgJ1HKN9dLC4 uTF0LtK+d3G3HiFLBSzVZ4tehnRyrB4vtBqueMjJLMrQ4zIb1DFehWQXe2NgGDPiEibi nRkMsadgK3nqyGSl7ttpEQu63ZhHQZv3v45TWshrCT+NoG98QjYwxSQOHYbYvr6rApXW 8htw== X-Received: by 10.52.17.168 with SMTP id p8mr68986173vdd.126.1357428734438; Sat, 05 Jan 2013 15:32:14 -0800 (PST) Received: from [192.168.200.148] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPS id a10sm46285594vez.10.2013.01.05.15.32.12 (version=SSLv3 cipher=OTHER); Sat, 05 Jan 2013 15:32:13 -0800 (PST) Message-ID: <50E8B7FB.6050506@lerdorf.com> Date: Sat, 05 Jan 2013 15:32:11 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Kris Craig CC: Stas Malyshev , Nikita Nefedov , "internals@lists.php.net" References: <50E8ADF5.6070504@sugarcrm.com> In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkYXgwmAQbEg4KqqNyHvaPEEVAuw0WATI6apyLpuZlbecBHZH2m9ptdmYsluoCCiuJpANoS Subject: Re: [PHP-DEV] Ruby's symbols From: rasmus@lerdorf.com (Rasmus Lerdorf) On 01/05/2013 03:29 PM, Kris Craig wrote: > In both cases, we really don't care what the actual values of brown, black, > and purple are. We just want it to be unique so we can reference each of > them in a visually friendly way with minimal performance impact. That's > where I could see a valid use-case for Ruby-like symbols in PHP. What you are describing is just an enum. That's not really what Ruby symbols are about. -Rasmus