Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cwarren
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
cwarren
19y ago
Perhaps I should've elaborated a little. Here's a follow-up that I posted on reddit: both of them violate the user model in subtle ways[1]. Most people don't expect numbers to act as functions. If a bug crops up because of it, more than l
2.
▲
by
cwarren
19y ago
Figure I might as well post this here as well: Numbers _are not_ functions! This kind of attitude is what gets you python's list formatting operator: >>> "%s" % ("a string",) 'a string' >>> "%s" % ["a string"] "['a