Hi!
On 8/4/11 2:02 PM, Jezz Goodwin wrote:
Your argument goes back to whether or not PHP should have short-hand
lambdas in general. It's looking like the majority of people think it
shouldn't.
And really, PHP doesn't need more cryptic syntax. There are many things
that PHP does need (like peo
Haha, yes indeed. In fact my Thunderbird was changing them to sad
smileys until I disabled emoticons!
Colon is one of many possibilities.
Your argument goes back to whether or not PHP should have short-hand
lambdas in general. It's looking like the majority of people think it
shouldn't.
O
On Thu, 2011-08-04 at 21:17 +0100, Jezz Goodwin wrote:
> :($x)=>$x+1;
":(" looks quite sad. I also assume you know that : is a division. In a
more complex situation this might, on first sight, be mistaken as a
division by $x or such.
Mind that a line of code typically is read way more often than
On 04/08/2011 21:42, Jérémy Poulain wrote:
Hi every one,
This message is also my first one. I've been following internals for few
weeks now.
I really don't think adding more short syntax would be a good idea, at least
this one.
PHP is a very popular language for many reasons, it's C-like, easy
Hi every one,
This message is also my first one. I've been following internals for few
weeks now.
I really don't think adding more short syntax would be a good idea, at least
this one.
PHP is a very popular language for many reasons, it's C-like, easy readable.
We all had to read some code made
In terms of thinking about typos, I'm sure there would be a solution to
making pretty robust short hand lambdas.
I think a more valid discussion would be whether PHP should have a short
hand lamda notation. A lot of talk on here is against there even being a
short-hand version, whatever syntax
Just two examples, why I think, this is a not a good idea. Simple typos
can produce hard to track errors. Its just confusing
$x = 4;
$y = ($x);{
return $x*2;
}
// and
$x = 4;
$x = ($x)
{
$y = $x*2;
}
On 04.08.2011 21:52, Jezz Goodwin wrote:
Hello PHP Internals,
This is my first m
On 04/08/2011 21:00, Matthew Weier O'Phinney wrote:
On 2011-08-04, Jezz Goodwin wrote:
--060805070009050707030403
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hello PHP Internals,
This is my first message to the list. I've been readin