Re: [PHP-DEV] SPL Binary Tree, Graph

2013-08-07 Thread Богдан Кузема
Hello Levi and core devs, I think it's better not to invent a wheel but rather extract best practices from time proved projects such as Gremlin, http://erldocs.com/R15B/stdlib/digraph.html looks not bad as well. Definitely there are a lot of bright minds among PHP core developers and PHP communit

Re: [PHP-DEV] SPL Binary Tree, Graph

2013-07-19 Thread Levi Morrison
> I would like to ask you what is your opinion about implementing Binary >>> Tree >>> and Graph data structures in SPL in addition to existing ones? IMHO it >>> would be great because that will prevent from inventing a wheel all the >>> time, and prove that PHP is full featured language like C#, J

Re: [PHP-DEV] SPL Binary Tree, Graph

2013-07-19 Thread Богдан Кузема
Hello Levi, Your statement is fair enough. Use cases I can think about are social, network, geographical, connected flights graphs, work with hierarchical data like corporations structures, products categories, indexing objects tree stored in memory/cache and PHP web applications representing tho

Re: [PHP-DEV] SPL Binary Tree, Graph

2013-07-18 Thread Stas Malyshev
Hi! > I would like to ask you what is your opinion about implementing Binary Tree > and Graph data structures in SPL in addition to existing ones? IMHO it Sure, why not? But I'd suggest first proposing the API for the classes in the form of the RFC (https://wiki.php.net/rfc) and explanation what

Re: [PHP-DEV] SPL Binary Tree, Graph

2013-07-18 Thread Levi Morrison
> > I would like to ask you what is your opinion about implementing Binary Tree > and Graph data structures in SPL in addition to existing ones? IMHO it > would be great because that will prevent from inventing a wheel all the > time, and prove that PHP is full featured language like C#, Java, ...

[PHP-DEV] SPL Binary Tree, Graph

2013-07-18 Thread Богдан Кузема
Dear PHP Developers, I would like to ask you what is your opinion about implementing Binary Tree and Graph data structures in SPL in addition to existing ones? IMHO it would be great because that will prevent from inventing a wheel all the time, and prove that PHP is full featured language like C