# A new idea on PHP6.

- Thread: https://externals.io/message/61456
- Original archive: https://news-web.php.net/php.internals/61456
- Started by Ronald Chmara on 2012-07-19T06:17:45+00:00
- Messages: 9
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #61456 — Ronald Chmara — 2012-07-19T06:17:45+00:00

URL: https://externals.io/message/61456#61456

With PHP 6, lets start with a:
Pure
Object
Oriented
PHP

...idea, and extend it out, so we can have a:
Structured
Heuristic
Idealistic
Taxonomy

..so we reduce user confusion, and eliminate the vast majority of our
userbase, (thus cutting down on bug reports, of course)  so we can
have a:
Heuristic
Accessible
Readable
Available
Helpful
...language advance.

(This is not meant as a serious post, but as a post to increase levity
on this list. Your mileage may vary. Cape does not enable the wearer
to fly.)

-Ronabop

---

## #61457 — Matt Wilson — 2012-07-19T06:31:22+00:00

URL: https://externals.io/message/61456#61457 · In reply to: #61456

I'll start off by saying that I am, personally, a great fan of OO. Pure OO languages have always tickled me just right.

But I question the idea that making something pure OO makes it better. And in PHP, it wouldn't be a mere revamp of the OOP system like php5 did, it would fundamentally change the language. It wouldn't be PHP anymore. Also, it'd be slow. Very slow. There's no real way to keep PHP's model and go the route you're talking without turning the language into a vegetable.

And that's okay. Because PHP isn't a one-size-fits-all tool. It's a web language, and it excels at being a web language. Why can't we just keep it that way, and use the tool appropriate for the job at hand? I wish we could stop trying to make PHP everything to everyone and just accept that sometimes java is the answer. Or python. Or ruby. Or any other language or technology that fits.

Making PHP 100% OO won't make it better at web development. In fact, I'd argue it'd do the opposite, as a once simple language would now inherit not just the features that go with a pure OO language, but also the same considerations one has to make when dealing with such a language. Moreover, a change like this would result in one of two outcomes: PHP follows through with a solid, feature-complete OO language specification (unlikely) and thus loses the flexibility of being a dirty little dynamically typed language that cares little for enforcing type constraints, or, much more likely, we get a half assed solution because PHP wouldn't be PHP without that flexibility, and it's largely incompatible with a true OO architecture.

Just my $0.02



> With PHP 6, lets start with a:
> Pure
> Object
> Oriented
> PHP
> 
> ...idea, and extend it out, so we can have a:
> Structured
> Heuristic
> Idealistic
> Taxonomy
> 
> ..so we reduce user confusion, and eliminate the vast majority of our
> userbase, (thus cutting down on bug reports, of course)  so we can
> have a:
> Heuristic
> Accessible
> Readable
> Available
> Helpful
> ...language advance.
> 
> (This is not meant as a serious post, but as a post to increase levity
> on this list. Your mileage may vary. Cape does not enable the wearer
> to fly.)
> 
> -Ronabop

---

## #61458 — Matt Wilson — 2012-07-19T06:34:02+00:00

URL: https://externals.io/message/61456#61458 · In reply to: #61456

I will also note that my phone cut off the part about this post not being serious. 

I, however, have no sense of humor. 



> With PHP 6, lets start with a:
> Pure
> Object
> Oriented
> PHP
> 
> ...idea, and extend it out, so we can have a:
> Structured
> Heuristic
> Idealistic
> Taxonomy
> 
> ..so we reduce user confusion, and eliminate the vast majority of our
> userbase, (thus cutting down on bug reports, of course)  so we can
> have a:
> Heuristic
> Accessible
> Readable
> Available
> Helpful
> ...language advance.
> 
> (This is not meant as a serious post, but as a post to increase levity
> on this list. Your mileage may vary. Cape does not enable the wearer
> to fly.)
> 
> -Ronabop

---

## #61461 — dukeofgaming — 2012-07-19T08:28:41+00:00

URL: https://externals.io/message/61456#61461 · In reply to: #61458

Now that we have Traits, lets bring in Aspects too!
http://en.wikipedia.org/wiki/Aspect-oriented_programming

Also, PHP is not necessarily evil by allowing non-OO code, but maybe we
could do better at the non-OO code side of things by adding prototyped
inheritance in a javascript-ish spirit to at least promote code reuse to
those non-OO heretics.

Yeah, this would definitely work *laughs incontrollably*



> I will also note that my phone cut off the part about this post not being
> serious.
>
> I, however, have no sense of humor.
>
> 
>
> > […]

---

## #61476 — Andrew Faulds — 2012-07-19T11:40:58+00:00

URL: https://externals.io/message/61456#61476 · In reply to: #61456

Our syntax is very, very confusing for newbies. Also, procedural and OOP
programming is unnatural and unintuitive. We should use the natural LISP
braces syntax and make PHP functional, so it is much easier to write, e.g.:

((decl (main (echo (add (reverse (array (1 2 3))) (string ('h 'e 'l 'l 'o
'\  'w 'o 'r 'l 'd '\n)))) (phpinfo))))


> With PHP 6, lets start with a:
> Pure
> Object
> Oriented
> PHP
>
> ...idea, and extend it out, so we can have a:
> Structured
> Heuristic
> Idealistic
> Taxonomy
>
> ..so we reduce user confusion, and eliminate the vast majority of our
> userbase, (thus cutting down on bug reports, of course)  so we can
> have a:
> Heuristic
> Accessible
> Readable
> Available
> Helpful
> ...language advance.
>
> (This is not meant as a serious post, but as a post to increase levity
> on this list. Your mileage may vary. Cape does not enable the wearer
> to fly.)
>
> -Ronabop

---

## #61505 — Kris Craig — 2012-07-19T18:09:33+00:00

URL: https://externals.io/message/61456#61505 · In reply to: #61476

On Thu, Jul 19, 2012 at 4:40 AM, Andrew Faulds <ajfweb@googlemail.com>wrote:

> Our syntax is very, very confusing for newbies. Also, procedural and OOP
> programming is unnatural and unintuitive. We should use the natural LISP
> braces syntax and make PHP functional, so it is much easier to write, e.g.:
>
> ((decl (main (echo (add (reverse (array (1 2 3))) (string ('h 'e 'l 'l 'o
> '\  'w 'o 'r 'l 'd '\n)))) (phpinfo))))
> 
>
> > […]
>

I get that the first two acronyms are POOP and SHIT; however, the third
one, HARAH, is throwing me off.  Is that a fecal reference in some other
language or something?

--Kris

---

## #61507 — Ronald Chmara — 2012-07-19T18:16:06+00:00

URL: https://externals.io/message/61456#61507 · In reply to: #61505

> I get that the first two acronyms are POOP and SHIT; however, the third one,
> HARAH, is throwing me off.  Is that a fecal reference in some other language
> or something?

http://www.youswear.com/index.asp?language=Hebrew

I thought about making an acronym for  "PAAMAYIM NEKUDOTAYIM", just
for the giggles, but decided it was way too much work, and might be
even *more* obtuse.

-Ronabop

---

## #61510 — Kris Craig — 2012-07-19T18:24:14+00:00

URL: https://externals.io/message/61456#61510 · In reply to: #61507

> 
> > […]
> one,
> > […]
> language
> > […]
>
> http://www.youswear.com/index.asp?language=Hebrew
>
> I thought about making an acronym for  "PAAMAYIM NEKUDOTAYIM", just
> for the giggles, but decided it was way too much work, and might be
> even *more* obtuse.
>
> -Ronabop
>

Lol ironically, that one I would've got!

Ok, let's see what I can come-up with on the fly....

Paramedics
Ate
Arnold's
Mouse
And
Yanked
It
Malevolently

Nerds
Electrocuted
Kittens
Until
David
Ostracized
Them
And
Yanked
It
Malevolently


I'll leave it to your imagination what "It" is lol.  ;P

--Kris

---

## #61516 — D. Dante Lorenso — 2012-07-19T20:20:08+00:00

URL: https://externals.io/message/61456#61516 · In reply to: #61456

> With PHP 6, lets start with a:
> Pure
> Object
> Oriented
> PHP

OMG, did you seriously just recommend POOP?  LOL, I'm gonna go die now.


-- Dante

D. Dante Lorenso
dante@lorenso.com
972-333-4139
