# Pseudo-objects (methods on arrays, strings, etc.)

- Thread: https://externals.io/message/61325
- Original archive: https://news-web.php.net/php.internals/61325
- Started by Andrew Faulds on 2012-07-16T23:27:10+00:00
- Messages: 65
- Page 1 of 3: messages 1 to 25 (25 per page, add `?page=N` to the URL)
- Next page: https://externals.io/message/61325.md?page=2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #61325 — Andrew Faulds — 2012-07-16T23:27:10+00:00

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

Hi there,

Through its history, PHP has slowly become more object-oriented. PHP
today has classes, interfaces, objects, namespaces, and so on.
However, much of the language's core functionality is entirely
procedural, composed of functions and constants, much of which are
badly organised and inconsistently named.

I think PHP could benefit from making arrays, strings, integers,
floats, and possibly booleans, into "pseudo-objects". By this I mean
that they are not really objects (they are still primitive types and
keep their passing semantics), but they have methods. For instance,
instead of array_keys($array), one could do $array->keys();

Adding this would make PHP feel more modern and allow people to
embrace more object-oriented programming styles. As a bonus, it would
also give a chance to make the string/array/etc functions better and
more consistently named and possibly implemented.

I am working on an implementation of this for arrays, but I haven't
got very far. However, for someone that knows the Zend engine
internals, it does not appear to me that adding such things would be
very difficult.

Thoughts?

-- 
Andrew Faulds (AJF)
http://ajf.me/

---

## #61326 — Ferenc Kovacs — 2012-07-16T23:45:27+00:00

URL: https://externals.io/message/61325#61326 · In reply to: #61325

On Tue, Jul 17, 2012 at 1:27 AM, Andrew Faulds <ajfweb@googlemail.com>wrote:

> Hi there,
>
> Through its history, PHP has slowly become more object-oriented. PHP
> today has classes, interfaces, objects, namespaces, and so on.
> However, much of the language's core functionality is entirely
> procedural, composed of functions and constants, much of which are
> badly organised and inconsistently named.
>
> I think PHP could benefit from making arrays, strings, integers,
> floats, and possibly booleans, into "pseudo-objects". By this I mean
> that they are not really objects (they are still primitive types and
> keep their passing semantics), but they have methods. For instance,
> instead of array_keys($array), one could do $array->keys();
>
> Adding this would make PHP feel more modern and allow people to
> embrace more object-oriented programming styles. As a bonus, it would
> also give a chance to make the string/array/etc functions better and
> more consistently named and possibly implemented.
>
> I am working on an implementation of this for arrays, but I haven't
> got very far. However, for someone that knows the Zend engine
> internals, it does not appear to me that adding such things would be
> very difficult.
>
> Thoughts?
>
>
we have that brought up once or twice in the past, last time it was Rasmus
who mentioned that it could be nice:
http://marc.info/?l=php-internals&m=130159506720600&w=2


-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu

---

## #61327 — Adam Jon Richardson — 2012-07-16T23:58:44+00:00

URL: https://externals.io/message/61325#61327 · In reply to: #61325

> Through its history, PHP has slowly become more object-oriented.

While PHP has become more capable for OOP, it has also become more
capable for FP, too. And, procedural programming is still a very
strong influence.

> I think PHP could benefit from making arrays, strings, integers,
> floats, and possibly booleans, into "pseudo-objects". By this I mean
> that they are not really objects (they are still primitive types and
> keep their passing semantics), but they have methods. For instance,
> instead of array_keys($array), one could do $array->keys();

If the pseudo objects keep their passing semantics, this could be a
source of confusion.

> Adding this would make PHP feel more modern and allow people to
> embrace more object-oriented programming styles. As a bonus, it would
> also give a chance to make the string/array/etc functions better and
> more consistently named and possibly implemented.

I'm not sure I would classify it as more modern or if we should be
hoping more people embrace OOP. The language would feel more OO with
these changes, but there are many programming paradigms that are are
trending now (FP, AOP, DbC, homoiconic languages like Clojure, Lisp,
and Julia have helped promote meta-programming, etc.) I like that fact
that PHP falls back into a procedural paradigm nicely, whilst still
allowing me to use OOP design patterns and FP techniques for the bulk
of my applications.

While I'd like to see more consistency within the core functions, I'm
not sure this is the route to take.

Adam

---

## #61328 — Gustavo Lopes — 2012-07-17T00:12:14+00:00

URL: https://externals.io/message/61325#61328 · In reply to: #61325

Em Tue, 17 Jul 2012 01:27:10 +0200, Andrew Faulds <ajfweb@googlemail.com>  
escreveu:

> Through its history, PHP has slowly become more object-oriented. PHP
> today has classes, interfaces, objects, namespaces, and so on.
> However, much of the language's core functionality is entirely
> procedural, composed of functions and constants, much of which are
> badly organised and inconsistently named.
>
> I think PHP could benefit from making arrays, strings, integers,
> floats, and possibly booleans, into "pseudo-objects". By this I mean
> that they are not really objects (they are still primitive types and
> keep their passing semantics), but they have methods. For instance,
> instead of array_keys($array), one could do $array->keys();
>
> Adding this would make PHP feel more modern and allow people to
> embrace more object-oriented programming styles. As a bonus, it would
> also give a chance to make the string/array/etc functions better and
> more consistently named and possibly implemented.
>

As I said in IRC, I have some reservations about this.

Let's ignore empty arguments like "make[s] PHP feel modern". That aside,  
the main argument advanced in this message makes no sense. Adding method  
call syntax to arrays hardly makes PHP more object oriented. Syntax is  
unimportant. There's no substantial difference between array_slice($arr,  
...) and $arr->slice(...). Object orientation is about polymorphism,  
encapsulation, inheritance, etc. None of that is advanced by the proposed  
change. And even if it was, you would still have to justify why that would  
be a positive development.

Plus, it's very odd to claim this would make PHP more object oriented when  
there are no objects involved! I don't think it's necessary to enumerate  
all the differences between objects and arrays -- one that would be  
particularly confusing would be the different passing semantics (or more  
accurately, different levels of indirection).

There is, in my opinion, *one* merit here -- redesigning -- and perhaps  
reimplementing -- the arrays functions API. This will require a lot of  
work, thought, and time tough.

-- 
Gustavo Lopes

---

## #61339 — Pierre Joye — 2012-07-17T10:07:09+00:00

URL: https://externals.io/message/61325#61339 · In reply to: #61328

hi,



> Let's ignore empty arguments like "make[s] PHP feel modern". That aside, the
> main argument advanced in this message makes no sense.

This idea has been proposed many times in the past and it is actually
a very good proposal, for array, string or other types.

The only reason why it is not yet implemented is the technical
complexity to do it. We need pseudo objects and the likes, and it is
really not something easy to do, in an efficient enough way.

> Adding method call
> syntax to arrays hardly makes PHP more object oriented. Syntax is
> unimportant. There's no substantial difference between array_slice($arr,
> ...) and $arr->slice(...).

There is a huge difference. One of the main difference would be to
finally have an uniform API and not this painful inconsistent APIs we
have to maintain.

> There is, in my opinion, *one* merit here -- redesigning -- and perhaps
> reimplementing -- the arrays functions API. This will require a lot of work,
> thought, and time tough.

Yes, but long due, same for strings.

Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

---

## #61340 — Andrew Faulds — 2012-07-17T10:15:52+00:00

URL: https://externals.io/message/61325#61340 · In reply to: #61339

I think strings are even more important, they have an even messier API than
arrays.


> hi,
>
> On Tue, Jul 17, 2012 at 2:12 AM, Gustavo Lopes <glopes@nebm.ist.utl.pt>
> wrote:
>
> > […]
> the
> > […]
>
> This idea has been proposed many times in the past and it is actually
> a very good proposal, for array, string or other types.
>
> The only reason why it is not yet implemented is the technical
> complexity to do it. We need pseudo objects and the likes, and it is
> really not something easy to do, in an efficient enough way.
>
> > […]
>
> There is a huge difference. One of the main difference would be to
> finally have an uniform API and not this painful inconsistent APIs we
> have to maintain.
>
> > […]
> work,
> > […]
>
> Yes, but long due, same for strings.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org

---

## #61341 — Gustavo Lopes — 2012-07-17T10:21:28+00:00

URL: https://externals.io/message/61325#61341 · In reply to: #61339

> On Tue, Jul 17, 2012 at 2:12 AM, Gustavo Lopes
> <glopes@nebm.ist.utl.pt> wrote:
>
> > […]
>
> There is a huge difference. One of the main difference would be to
> finally have an uniform API and not this painful inconsistent APIs we
> have to maintain.

There isn't a difference in terms of making PHP more object oriented, 
which was the main advantage advanced by the OP. I'm all for redesigning 
strings/arrays APIs (presented as an afterthought by the OP), but for 
that the discussion should be centered on what those APIs will look 
like, not the syntax one uses to call them.

In fact, quite frequently, syntax discussions make more important 
design decisions be ignored (see namespaces).

> > […]
>
> Yes, but long due, same for strings.

-- 
Gustavo Lopes

---

## #61342 — Pierre Joye — 2012-07-17T10:24:29+00:00

URL: https://externals.io/message/61325#61342 · In reply to: #61341

hi Gustavo,



> There isn't a difference in terms of making PHP more object oriented, which
> was the main advantage advanced by the OP. I'm all for redesigning
> strings/arrays APIs (presented as an afterthought by the OP), but for that
> the discussion should be centered on what those APIs will look like, not the
> syntax one uses to call them.

To provide pseudo objects is a damned good point and long due. Please
don't focus on a badly formulated initial post (more object oriented),
we are not in a CS course but in the PHP internals discussions list
:).

> In fact, quite frequently, syntax discussions make more important design
> decisions be ignored (see namespaces).

Syntax easiness and APIs cleanness are what make a language attractive.

Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

---

## #61343 — Andrew Faulds — 2012-07-17T10:30:55+00:00

URL: https://externals.io/message/61325#61343 · In reply to: #61341

I might not have made it clear, but the main reasons I want it are:

- Chance to clean up array/string/etc APIs
- Looks nicer IMO, slightly clearer what functions do and affect


> 
>
>  On Tue, Jul 17, 2012 at 2:12 AM, Gustavo Lopes
> > […]
>
> There isn't a difference in terms of making PHP more object oriented,
> which was the main advantage advanced by the OP. I'm all for redesigning
> strings/arrays APIs (presented as an afterthought by the OP), but for that
> the discussion should be centered on what those APIs will look like, not
> the syntax one uses to call them.
>
> In fact, quite frequently, syntax discussions make more important design
> decisions be ignored (see namespaces).
>
>  There is, in my opinion, *one* merit here -- redesigning -- and perhaps
> > […]
>
> --
> Gustavo Lopes

---

## #61344 — Lester Caine — 2012-07-17T10:49:39+00:00

URL: https://externals.io/message/61325#61344 · In reply to: #61339

Pierre Joye wrote:
> This idea has been proposed many times in the past and it is actually
> a very good proposal, for array, string or other types.
>
> The only reason why it is not yet implemented is the technical
> complexity to do it. We need pseudo objects and the likes, and it is
> really not something easy to do, in an efficient enough way.

Probably a silly question, but what popped into my mind was the way C++ was 
supposed to enhance C by adding these sort of rich functions in extra libraries. 
As a stepping stone, couldn't the mbstring package be re-factored as an OO 
library and used as a testbed for a new strings API? I would assume that this 
would all be natively multibyte aware from day one and I can't think of anything 
that is missing from mbstring?

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

---

## #61350 — Rasmus Lerdorf — 2012-07-17T14:04:01+00:00

URL: https://externals.io/message/61325#61350 · In reply to: #61339

> hi,
> 
> 
> 
> > […]
> 
> This idea has been proposed many times in the past and it is actually
> a very good proposal, for array, string or other types.
> 
> The only reason why it is not yet implemented is the technical
> complexity to do it. We need pseudo objects and the likes, and it is
> really not something easy to do, in an efficient enough way.

And also because most of the proposals are simply strong-typing in
disguise. If you turn scalars into objects and attach methods to those
objects are you still going to be able to call `floor()` on a numeric
string? This isn't as simple as people think on first glance and it
doesn't really clean up the global namespace since we still need to be
able to do type coercion which effectly implies that all scalar objects
need to include the bulk of the current set of scalar functions.

-Rasmus

---

## #61358 — Andrew Faulds — 2012-07-17T15:06:09+00:00

URL: https://externals.io/message/61325#61358 · In reply to: #61350

Whilst weak typing has its benefits, I think typing is a little too weak in
places. IMO "" should not be equal to 0 or coercable to 0. But of course
"0" should equal 0.


> 
> > […]
> wrote:
> > […]
> aside, the
> > […]
>
> And also because most of the proposals are simply strong-typing in
> disguise. If you turn scalars into objects and attach methods to those
> objects are you still going to be able to call `floor()` on a numeric
> string? This isn't as simple as people think on first glance and it
> doesn't really clean up the global namespace since we still need to be
> able to do type coercion which effectly implies that all scalar objects
> need to include the bulk of the current set of scalar functions.
>
> -Rasmus

---

## #61359 — Rasmus Lerdorf — 2012-07-17T15:21:48+00:00

URL: https://externals.io/message/61325#61359 · In reply to: #61358

> Whilst weak typing has its benefits, I think typing is a little too weak
> in places. IMO "" should not be equal to 0 or coercable to 0. But of
> course "0" should equal 0.

Which has nothing to do with this thread.

> 
> On Jul 17, 2012 3:04 PM, "Rasmus Lerdorf" <rasmus@lerdorf.com
> <mailto:rasmus@lerdorf.com>> wrote:
> 
>     
> > […]
>     <glopes@nebm.ist.utl.pt <mailto:glopes@nebm.ist.utl.pt>> wrote:
> > […]
>     aside, the
> > […]
> 
>     And also because most of the proposals are simply strong-typing in
>     disguise. If you turn scalars into objects and attach methods to those
>     objects are you still going to be able to call `floor()` on a numeric
>     string? This isn't as simple as people think on first glance and it
>     doesn't really clean up the global namespace since we still need to be
>     able to do type coercion which effectly implies that all scalar objects
>     need to include the bulk of the current set of scalar functions.
> 
>     -Rasmus

---

## #61370 — Stas Malyshev — 2012-07-17T17:03:52+00:00

URL: https://externals.io/message/61325#61370 · In reply to: #61339

Hi!

> This idea has been proposed many times in the past and it is actually
> a very good proposal, for array, string or other types.

If we have "$array->foo()", we should also have "class foo extends
array" which allows to override foo() in array. This will require some
serious changes, which need to be RFCed and reviewed and seen if they
can really fit the language properly. Just saying "let's bolt on method
calls on top of arrays" is definitely not very good. Having OO Array
type may be good, if we will be able to figure out suitable design that
will allow the same flexibility and power as regular arrays - though I'm
not sure how to do it now.

> The only reason why it is not yet implemented is the technical
> complexity to do it. We need pseudo objects and the likes, and it is
> really not something easy to do, in an efficient enough way.

I disagree - I do not think we need pseudo-objects. If the only point of
the exercise is to convert a call of array_pop to $array->pop, it's not
worth it. It'd just make the language more messy - you wouldn't know
what -> means anymore.
-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

---

## #61371 — Alexey Zakhlestin — 2012-07-17T17:46:38+00:00

URL: https://externals.io/message/61325#61371 · In reply to: #61370

> Hi!
> 
> > […]
> 
> If we have "$array->foo()", we should also have "class foo extends
> array" which allows to override foo() in array. This will require some
> serious changes, which need to be RFCed and reviewed and seen if they
> can really fit the language properly. Just saying "let's bolt on method
> calls on top of arrays" is definitely not very good. Having OO Array
> type may be good, if we will be able to figure out suitable design that
> will allow the same flexibility and power as regular arrays - though I'm
> not sure how to do it now.
> 
> > […]
> 
> I disagree - I do not think we need pseudo-objects. If the only point of
> the exercise is to convert a call of array_pop to $array->pop, it's not
> worth it. It'd just make the language more messy - you wouldn't know
> what -> means anymore.

+1

I am for making array a proper class with methods.

"Legacy" functions can be implemented as wrappers around it:

    function array_push(&$array, $value)
    {
        $array->push($value);
    }

There is absolutely no sense in creating new "pseudo object" entity. It would just add tons of confusion.

p.s. in case of array, we already have http://docs.php.net/ArrayObject which is a good starting point

---

## #61372 — Stas Malyshev — 2012-07-17T17:50:28+00:00

URL: https://externals.io/message/61325#61372 · In reply to: #61371

Hi!

> I am for making array a proper class with methods.
> 
> "Legacy" functions can be implemented as wrappers around it:
> 
>     function array_push(&$array, $value)
>     {
>         $array->push($value);
>     }

The problem there is that array has different semantics than object. Not
completely, but for example if you pass array to function, it is passed
by value and is not modified, but objects are always mutable when passed
to functions. Changing this semantics will break a lot of code.

-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

---

## #61373 — Alexey Zakhlestin — 2012-07-17T18:47:13+00:00

URL: https://externals.io/message/61325#61373 · In reply to: #61372

> Hi!
> 
> > […]
> 
> The problem there is that array has different semantics than object. Not
> completely, but for example if you pass array to function, it is passed
> by value and is not modified, but objects are always mutable when passed
> to functions. Changing this semantics will break a lot of code.

Having special handling of Array objects doesn't sound good too. And I don't see any nice solution.

Options are:
* "5-to-6" tool, similar to python's "2-to-3" converter, which will fix code.
* introduce some kind of per-file declare() option, which would enable pass-by-reference semantics of arrays/strings/etc. in 5.5 which would let people write the same code for 5.5 and 6.x

Well, actually, there's one more option: we can introduce "Autocloned" interface (empty, without methods) and force "cloning" of objects, which implement this interface, during parameter-fetching phase.
This would allow us to have 2 sets of classes: One set which implements this interface (slower, but backwards-compatible) and another set which doesn't (faster, but not compatible).

---

## #61374 — Stas Malyshev — 2012-07-17T19:01:34+00:00

URL: https://externals.io/message/61325#61374 · In reply to: #61373

Hi!

> Options are: * "5-to-6" tool, similar to python's "2-to-3" converter,
> which will fix code.

Do you know any practical way of how such tool could work?

> * introduce some kind of per-file declare() option, which would
> enable pass-by-reference semantics of arrays/strings/etc. in 5.5
> which would let people write the same code for 5.5 and 6.x

I don't think it's a viable option. The goal is to run existing code, if
you'd need to change each file that defeats the purpose of it.

> Well, actually, there's one more option: we can introduce
> "Autocloned" interface (empty, without methods) and force "cloning"
> of objects, which implement this interface, during parameter-fetching
> phase. This would allow us to have 2 sets of classes: One set which

It's not only parameter fetching. It's everywhere - assignment, access,
etc. Example:

$b = $a;
$b[0] = 1;

$a should not change in this situation, for arrays. For objects, $a and
$b are the same. Different semantics. Introducing such semantics for
classes would be a major complication in the engine, even if it's doable
(which I doubt) I don't think it is a goo idea.

-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

---

## #61375 — Alexey Zakhlestin — 2012-07-17T19:12:26+00:00

URL: https://externals.io/message/61325#61375 · In reply to: #61374

> Hi!
> 
> > […]
> 
> Do you know any practical way of how such tool could work?

That would be: tokenizer + static analysis (with type inference) + replacing some of the tokens.
Not a trivial task, but definitely doable.

And a large amount of php code (popular tools, frameworks, …) for writing tests :)

---

## #61376 — Stas Malyshev — 2012-07-17T19:20:38+00:00

URL: https://externals.io/message/61325#61376 · In reply to: #61375

Hi!

> That would be: tokenizer + static analysis (with type inference) + replacing some of the tokens.
> Not a trivial task, but definitely doable.

So what would this tool do with this code?

$a = getFirstArrayName();
$b = getSecondArrayName();
$$a = $$b;
$b[1] = 0;

Or this:

include 'a.inc';
$a = $b;
include 'b.inc';

where a.inc has array $a and b.inc has something like $b[1] = 0; but you
have no way of knowing it since by the time you run the tool a.inc and
b.inc are not available to it (think config files).

-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

---

## #61377 — Alexey Zakhlestin — 2012-07-17T19:53:03+00:00

URL: https://externals.io/message/61325#61377 · In reply to: #61376

> Hi!
> 
> > […]
> 
> So what would this tool do with this code?
> 
> $a = getFirstArrayName();
> $b = getSecondArrayName();
> $$a = $$b;
> $b[1] = 0;


Something like this:

   $a = getFirstArrayName();
   $b = getSecondArrayName();
   if ($$b instanceof ArrayObject) {
       $$a = clone $$b;
   } else {
       $$a = $$b;
   }

   $b[1] = 0;

> Or this:
> 
> include 'a.inc';
> $a = $b;
> include 'b.inc';
> 
> where a.inc has array $a and b.inc has something like $b[1] = 0; but you
> have no way of knowing it since by the time you run the tool a.inc and
> b.inc are not available to it (think config files).

well, the same as above. not pretty, but that's a safe fallback when type inference is not available.

---

## #61379 — Pierre Joye — 2012-07-17T20:16:35+00:00

URL: https://externals.io/message/61325#61379 · In reply to: #61370

hi,



> I disagree - I do not think we need pseudo-objects. If the only point of
> the exercise is to convert a call of array_pop to $array->pop, it's not
> worth it. It'd just make the language more messy - you wouldn't know
> what -> means anymore.

pseudo object for the reasons Rasmus mentioned in his previous post.

Having pure object would be not efficient enough and brings its lot of
caveats. Also it is important to keep in mind that this idea does not
apply only to array but to other types as well.

Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

---

## #61380 — Stas Malyshev — 2012-07-17T20:30:16+00:00

URL: https://externals.io/message/61325#61380 · In reply to: #61379

Hi!

> Having pure object would be not efficient enough and brings its lot of
> caveats. Also it is important to keep in mind that this idea does not
> apply only to array but to other types as well.

Same for other types. Just adding -> doesn't make the code
object-oriented. And just bolting -> on top of regular function calls
because it looks prettier seems meaningless to me. OK, we could make
$foo->bar() mean bar($foo) - python already has pretty much the same
idea, after all - but what's the point in it? I don't see any that would
be worth the effort.

-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

---

## #61386 — Pierre Joye — 2012-07-18T07:31:14+00:00

URL: https://externals.io/message/61325#61386 · In reply to: #61380

hi!


> Hi!
>
> > […]
>
> Same for other types. Just adding -> doesn't make the code
> object-oriented.

Not the point.

> And just bolting -> on top of regular function calls
> because it looks prettier seems meaningless to me. OK, we could make
> $foo->bar() mean bar($foo) - python already has pretty much the same
> idea, after all - but what's the point in it? I don't see any that would
> be worth the effort.

See the other answers, clear APIs, no more argument mess, cleanness.
Those are pretty good selling points and without any kind of BC.

Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

---

## #61387 — Stas Malyshev — 2012-07-18T07:35:00+00:00

URL: https://externals.io/message/61325#61387 · In reply to: #61386

Hi!

> See the other answers, clear APIs, no more argument mess, cleanness.

Cleanness has nothing to do with pseudo-objects. You don't have to use
-> to have clean APIs, and using -> doesn't automatically make your APIs
clean. Using -> has absolutely nothing to do with API cleanness and
arguments, so I don't understand how it's an argument for pseudo-objects.
-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

---

Next page: https://externals.io/message/61325.md?page=2
