I've been reading and I discovered a concept called Design By
Contract. I've not seen any particular libraries to aid in this
particular development design process, but I was wondering if you
folks had, or if there were plans to consider providing for this
functionality within PHP. (A longshot, I k
I've written a short paper on the future of PHP and I'd appreciate it
if you folks would take a look at it and exchange your thoughts with
me.
http://www.maraby.com/papers/pushing_php_into_the_web_20_generation
Don't be too skeptical. ;)
Cheers!
M.T.
--
PHP Internals - PHP Runtime Development
[Reply below]
On 2/2/06, Christian Schneider <[EMAIL PROTECTED]> wrote:
> While I would kinda like array literals too (and even had a patch for it
> some time ago, don't remember if it was without problems though) the
> core developers think that
> a) one working solution is enough
> b) array() is
So, all I heard as reasons not to introduce the '[]' syntax for
creating arrays is because "'array()' is perfectly fine" and that it
wouldn't make sense to have two syntaxes (compared to other legacy
stuff in PHP). And certainly nobody has an objection to the fact that
developers have to learn that
Or could learn that [] creates arrays the same way that it is used to
access and assign pieces of arrays.
M.T.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Then why don't we have these:
$i = integer(5);
$f = float(4.5);
$s = string("foo");
And what about classes? It's slightly different, what with it being a
definition rather than a specific literal value, but it produces a
definition, pseudo value if you will, so why not have:
class("MyClass", arr
No, it's definitely not that hard to write, but I have seeing
'array()' everywhere when I know damn well that it's an array.
Concerning the 'pass by reference' problems, I'm going to assume that
that's happening when you're working with some of the functions
already in PHP or someone else's code,
Hi, I've written a short paper on some changes that I'd like to see
made for array literals in PHP. If you could please take a look and
give your thoughts, I'd greatly appreciate it.
http://www.matttoddphoto.com/papers/php_array_literals.html
Thanks,
M.T.
--
PHP Internals - PHP Runtime Developm