Re: dropping curly braces

From: Date: Thu, 17 Nov 2005 23:33:53 +0000
Subject: Re: dropping curly braces
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-20112@lists.php.net to get a copy of this message
Andreas Korthaus wrote: > OK, but by dropping {} for strings you also remove the possibility to > have a convention like "[] for arrays and {} for strings". > If I could decide I would drop {} for arrays and [] for strings, but I > fear I will not be asked to decide... ;-) You may think that {} and [] are different, but in reality same code deals with both. Having two constructs for the same behavior is silly and leads to confusing, hard to read code. Especially so when you consider the fact {} has another meaning that is completely different. Ilia

« previous php.internals (#20112) next »