Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
igorw2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
igorw2
14y ago
Negative numbers are supported. But if you want a clean solution, implementing a SubtractionOperator is easy enough. Just implement the OperatorInterface.
2.
▲
by
igorw2
14y ago
There's a pull request for that now. ;-)
3.
▲
by
igorw2
14y ago
The library supports adding other numbers than 1 and 1. Your use case of adding 2 to 1 is supported. As are multi-digit numbers. As are negative numbers. As you can see, the library is quite advanced.
4.
▲
by
igorw2
14y ago
Let me clarify the reason for this. Many people asked for yaml support in composer, and it was shot down. Here's why: Once you start supporting many formats you lose interoperability, as any tooling now needs to support all formats. That is
5.
▲
by
igorw2
14y ago
xdebug exposes a gdbp interface which supports breakpoints, stepping, inspecting variables, etc. And you can use it with gdb or any GUI that supports gdbp, such as macgdbp. EDIT: It does not expose a REPL though, which I suppose is what you
6.
▲
If it's not written in PHP it's irrelePHPant
(edorian.posterous.com)
25 points
by
igorw2
14y ago
|
4 comments
7.
▲
by
igorw2
14y ago
Does not work in IE6.
8.
▲
by
igorw2
14y ago
Yeah, the lack of native non-blocking bindings is quite the issue. There have been some attempts at implementing plain-PHP non-blocking drivers. One of the most impressive I've seen so far is phpdaemon: https://github.com/kakserpom/phpdaem
9.
▲
React/GifSocket: GifSockets in PHP
(github.com)
41 points
by
igorw2
14y ago
|
9 comments
10.
▲
by
igorw2
14y ago
This is an excellent example of how _not_ to write code. Custom autoloading scheme instead of PSR-0? Classname.inc.php, seriously? Moving on, dynamic variables are a terrible unfeature that should be avoided. References usually cause more h