logoalt Hacker News

Stop Using Pseudo-Types

20 pointsby speckxlast Wednesday at 1:36 PM4 commentsview on HN

Comments

pwdisswordfishytoday at 8:57 AM

Why? The article fails to explain.

> The introduction of first-class callables simplifies callback handling. You no longer have an excuse to define your callbacks like this:

> <?php

> $data = array_map(trim(...), [' x', 'z ']);

“First-class callables” is that exact syntax.

show 2 replies
nilslindemanntoday at 11:29 AM

Stop using languages where strings are callable :-p

boycothntoday at 6:05 AM

[dead]