Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fooyc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
271.
▲
Why dont browsers disallow onmousedown JS to change href?
(stackoverflow.com)
1 points
by
fooyc
15y ago
|
0 comments
272.
▲
by
fooyc
15y ago
Some libs such as PCRE can match by character properties, for example \pL would match any unicode letter. Doing that in a loop seems to be much more difficult. And unless you work on utf-32 data, you have to handle variable-size encoding of
273.
▲
by
fooyc
15y ago
> And when we want to adjust our lexer to admit other haracter types, such as Unicode identifiers Actually regex libraries such as PCRE have a good unicode support and are better than me when it comes to do things like matching characte
274.
▲
by
fooyc
15y ago
> They also result in much faster, safer, and compact implementations. If you are using a scripting language, regular expressions are often faster than a hand-written parser because the regular expression library itself will work at a l
275.
▲
by
fooyc
15y ago
There is many PHP parsers in a few languages: Some standalone: https://github.com/nikic/PHP-Parser http://pear.php.net/package/PHP_Parser Some part of other projects: https://github.com/facebook/hiphop-php https://github.com/faceb
276.
▲
by
fooyc
15y ago
How can I add a mixin to the __ class without editing it ?
277.
▲
by
fooyc
15y ago
It seems that it's fixed in PHP5.4; $this is the object in which you defined the closure by default, and you can re-bind it to any other object.
278.
▲
by
fooyc
15y ago
Why not using namespaced functions instead of static methods all in the same class ? This would have allowed to add new functions. This would even have allowed to use the _ namespace. With namespaces: namespace _; function each(
279.
▲
by
fooyc
15y ago
PHP does that only if you are trying to use $aString as an int.
280.
▲
by
fooyc
15y ago
Does it means this doesn't work on IE when Chrome Frame is not installed ?
281.
▲
by
fooyc
15y ago
The UI widgets like this all have the same defects: 1. They are slow, as all their markup has to be generated on the client side each time the page loads 2. They are not ajax friendly. I mean that if you insert a select box in a HTML docume