#20516 [Com]: RFC: C-style string concatenation

From: Date: Wed, 20 Nov 2002 14:02:52 +0000
Subject: #20516 [Com]: RFC: C-style string concatenation
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-25341@lists.php.net to get a copy of this message
ID: 20516 Comment by: dw-php.net@botanicus.net Reported By: dw-php.net@botanicus.net Status: Won\'t fix Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.2.3 New Comment: Conformity, ease of porting, the usual reasons why a change might be made. IMHO, the dot operator is ugly and I hate using it, simply because of the colour it appears as in vim :). If no-one wants to hack this in, can I be pointed toward the correct place in the source so I may? Thanks. Previous Comments: ------------------------------------------------------------------------ [2002-11-20 07:38:50] sander@php.net Why do you want that? PHP really doesn't need that, since we have the dot as string concatenation operator. What's wrong with it? "FOO" . /* weird comment if you like that */ "BAR" ------------------------------------------------------------------------ [2002-11-20 07:30:13] dw-php.net@botanicus.net Hi there, I was wondering if it would be at all possible to get ANSI C / ISO C99-style string literal concatenation added? The PHP syntax already borrows so much from C that this seems to be a worthy addition. It would also make it much easier for wrapping ugly SQL for pretty source files. String literal concatenation being: $a = "MY NAME IS " "DAVE WILSON" /* some comment tokens that get ignored */ "WAS HERE" // 2002 "2003"; Or, more useful: "SELECT id,x,y,z FROM tbl " /* grab required cols */ "WHERE y = %d" /* for our y coordinate. */ ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20516&edit=1

« previous php.bugs (#25341) next »