SitePoint Sponsor |
|
User Tag List
Results 1 to 25 of 82
Thread: Springtime for PHP6 in Paris
-
Nov 22, 2005, 21:23 #1
- Join Date
- Aug 2004
- Location
- California
- Posts
- 1,672
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Springtime for PHP6 in Paris
Very interesting (and long) notes by Derick Rethans covering the PHP developers discussion of PHP6 in Paris. Interesting reading.
http://www.php.net/~derick/meeting-notes.htmlChristopher
-
Nov 22, 2005, 22:10 #2
- Join Date
- Nov 2004
- Location
- Canberra, Australia
- Posts
- 66
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
OMG I nearly died when I saw item 4.2!!
-
Nov 22, 2005, 22:59 #3
- Join Date
- Jul 2002
- Location
- Dallas, TX
- Posts
- 2,900
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by {RainmakeR}
-
Nov 22, 2005, 23:07 #4
- Join Date
- Mar 2004
- Location
- Australia
- Posts
- 101
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Are there any "good" reason to use item 4.2 at all? Are there any wild estimated ETA for php6?
-
Nov 22, 2005, 23:19 #5
- Join Date
- Dec 2003
- Location
- oz
- Posts
- 819
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'd like to see some code that is better implemented with GOTO.
Someone make me a believer.
-
Nov 23, 2005, 01:19 #6
- Join Date
- Oct 2004
- Location
- Brooklyn, NY
- Posts
- 359
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The goto debate is tired, and I doubt anyone can come up with new arguments.
The reason for having any language feature is to put more power in the hands of developers. This is what I've always loved about PHP. It gives you plenty of rope with which to hang yourself. :-)Chris Shiflett
http://shiflett.org/
-
Nov 23, 2005, 01:27 #7
- Join Date
- Aug 2004
- Location
- California
- Posts
- 1,672
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by lazy_yogi
It is fairly common knowledge that structured programming, or OOP for that matter, while generally very good at most things are are not good at expressing some programming problems (you can't expect perfection). And even structured programming added the switch statement which -- though not that often used -- is just a disguised goto. The warnings against using goto are for beginning programmers (who should only have if and while anyway). Experienced programmers will judiciously use language constructs as appropriate.Christopher
-
Nov 23, 2005, 01:33 #8
- Join Date
- Aug 2004
- Location
- California
- Posts
- 1,672
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I was interested in a comment by one of those present, Andrei Zmievski:
... once 5.1 is out, I think we can concentrate on the implementation of PHP 6, which should be great.Christopher
-
Nov 23, 2005, 02:52 #9
- Join Date
- Jul 2002
- Location
- Dallas, TX
- Posts
- 2,900
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by lazy_yogi
It's true that a "goto"-like construct may rarely if-ever be useful in the problems most web-application developers face, but I don't pretend to know so much as to say it would never help.
-
Nov 23, 2005, 03:43 #10
- Join Date
- Apr 2004
- Location
- germany
- Posts
- 4,324
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks, arborint, really interesting reading!
There will be two string types: Binary (which is non-unicode) and String (which can be unicode or not, depending on ini setting). Similarly, there will be two integers: Int64 (which is always 64 bit) and Int (which is 32- or 64-bit depending on the current machine's word size). I've a strange feeling this can cause some portability troubles...
Can anybody explain 5.10? What's so " dangerous" about calling the same function as static and dynamic?
-
Nov 23, 2005, 04:34 #11
- Join Date
- Jun 2004
- Location
- Copenhagen, Denmark
- Posts
- 6,157
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by stereofrog
-
Nov 23, 2005, 05:30 #12
Thanks for the link aborint.
Do we really need type-hinting for function return values?
-
Nov 23, 2005, 05:56 #13
- Join Date
- May 2005
- Location
- Finland
- Posts
- 608
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I was, really, really disappointed seeing that. I was looking forward to them making the OO model better, but all we seem to be going to get is namespace support. Sorta.
-
Nov 23, 2005, 06:22 #14
- Join Date
- Dec 2004
- Location
- ljubljana, slovenia
- Posts
- 684
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by arborint
I've never seen a single piece of code that would actually benefit from goto, in terms of code clarity, flow and ease of maintenance. Can any of you that disagree with that post an example of such code? I'm always open to different approaches.
Best regards
-
Nov 23, 2005, 06:51 #15
- Join Date
- Apr 2004
- Location
- germany
- Posts
- 4,324
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
How would you write the following:
Code:if cond1 do action1 elsif cond2 do action2, then do action1 elsif cond3 do action3, then do action1
See also often quoted discussion at http://kerneltrap.org/node/553
-
Nov 23, 2005, 08:17 #16
Originally Posted by Ezku
$x = new company\web\class(); or
import company\web;
and not one mention of a property keyword ....sigh =(
i think i need to get rich, then go learn some c/c++ and extend my own version of php. sigh.
-
Nov 23, 2005, 08:50 #17
- Join Date
- Apr 2003
- Location
- London
- Posts
- 2,423
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Hi.
Actually I am glad to see the feature set is pretty small. They are taking stuff out at last, moving things to PECL and they rejected a whole bunch of stuff. After all the crap they put in last time (final?, type hints) it would be good to get cleaner. That will speed development in itself.
Adding dodgy language constructs (like GOTO) will slow development of PHP7. There is a big cost to adding a feature. You can never say GOTO is OK just because you cannot see a reason against it, there is always a hefty cost. It's just dumb management.
I am not sure what use type hinting on return values will be either. Handy for the Zend IDE, but not much else. PHP could have managed quite happily without type hints in the first place IMO. I'd rather have seen a smooth migration from 4 to 5 higher on the priorities.
There is one worrying thing about this. The idea that 5.1 is deemphisized in favour of 6. They should make sure they employ the talent on the current version, not just the fun new one. PHP5 has a huge number of very damaging bugs right at the OO core. I noticed that they have removed the OO category from the bug statistics page now and "phpsniper" has got his dream of marking them all bogus, but they are still there. I'd like to see those fixed.
Unicode is good move though. That will remove a whole load of junk from the language. Shame they couldn't have dome that gradually.
Regarding namespaces, the number one problem I have is importing legacy bits from all over the web and avoiding nameclashes. Any import faclity has to be able to import unnamed legacy code under a namespace.
yours, Marcus
p.s. My favourite useless syntatictic sugar would be defining methods like this...
PHP Code:class WithStuff {
public $_stuff;
public $_more_stuff;
function WithStuff($this->_stuff, $this->_more_stuff) { }
}
Marcus Baker
Testing: SimpleTest, Cgreen, Fakemail
Other: Phemto dependency injector
Books: PHP in Action, 97 things
-
Nov 23, 2005, 09:16 #18
- Join Date
- Sep 2004
- Location
- Zagreb, Croatia
- Posts
- 830
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I haven't even read the link yet, and you guys made me afraid already. Seems I'll really have to dive into Python then...
-
Nov 23, 2005, 09:39 #19
- Join Date
- Sep 2004
- Location
- Zagreb, Croatia
- Posts
- 830
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Just found this in Derick's notes:
As PHP is a weekly typed language this kind of functionality does not make sense in PHP.
However, it makes me sad when I see that the base contributors do not know the difference between weakly and dynamically typed languages.
-
Nov 23, 2005, 10:07 #20
- Join Date
- Aug 2002
- Posts
- 385
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
As PHP is a weekly typed language this kind of functionality does not make sense in PHP.
-
Nov 23, 2005, 13:33 #21
Originally Posted by Marcus
and just in general, how bad would it be to be able initalize an object through a private field when defining fields inside the class?
-
Nov 23, 2005, 19:08 #22
- Join Date
- Jun 2004
- Location
- California
- Posts
- 440
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I very much enjoy many of the features that are being implemented into PHP6... but I also notice that many of them are core features of Ruby already
-
Nov 23, 2005, 19:29 #23
- Join Date
- Sep 2004
- Location
- Zagreb, Croatia
- Posts
- 830
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by xmitchx
-
Nov 23, 2005, 19:53 #24
- Join Date
- Nov 2001
- Location
- Bath, UK
- Posts
- 2,498
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Off Topic:
Originally Posted by BerislavLopac
Oranges are more juicy than apples, though the skin on apples tastes better.
See, we can compare them. Just as we can compare PHP and Ruby. No need to be offended by this.
You can't claim that two things are incomparable just because ther are different, otherwise there would be little need for comparison in the first place.Hello World
-
Nov 24, 2005, 03:55 #25
- Join Date
- Apr 2004
- Location
- germany
- Posts
- 4,324
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Well, if php would be what it should be, namely object pascal with c syntax, I'd probably choose it over ruby.
Bookmarks