Edit report at https://bugs.php.net/bug.php?id=62572&edit=1

 ID:                 62572
 Comment by:         zyss at mail dot zp dot ua
 Reported by:        thbley at gmail dot com
 Summary:            Relax syntax by skipping ";" at end of line
 Status:             Open
 Type:               Feature/Change Request
 Package:            *General Issues
 Operating System:   all
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Semicolons were invented not by stupid people...

It's interesting how would you write without semicolons the following:

from($categories)
    ->orderBy('$v["name"]')
    ->groupJoin(
        from($products)
            ->where('$v["quantity"] > 0')
            ->orderByDescending('$v["quantity"]')
            ->thenBy('$v["name"]'),
        '$v["id"]', '$v["catId"]', 'array("name" => $v["name"], "products" => 
$e)'
    );

???


Previous Comments:
------------------------------------------------------------------------
[2012-07-16 03:36:17] thbley at gmail dot com

Description:
------------
old:

$txt1="Hello World!";
$txt2="What a nice day!";
echo $txt1 . " " . $txt2;
$i = 1; $j = 2; $k = 3;
function hello() { echo "hello world"; }

new:
$txt1="Hello World!"
$txt2="What a nice day!"
echo $txt1 . " " . $txt2
$i = 1; $j = 2; $k = 3
function hello() { echo "hello world" }

Test script:
---------------
$txt1="Hello World!"
$txt2="What a nice day!"
echo $txt1 . " " . $txt2
$i = 1; $j = 2; $k = 3
function hello() { echo "hello world" }



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=62572&edit=1

Reply via email to