Y
Hacker News
new
|
ask
|
show
|
jobs
by
kijin
4520 days ago
Or something like "numeric" that allows both int and float, as well as any string that would pass the test of is_numeric(). It would be just like class inheritance: int and float would be treated as subtypes of "numeric".