Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Domenic_S
· 12y ago · 0 comments
With array functions, the needle is first. With string functions, the haystack is first.
https://gist.github.com/salathe/1672543
Comments
[–]
turbo_pax
12y ago
Are you sure it's that consistent? I just feel like there's some function hiding somewhere that breaks this rule.
[–]
1qaz2wsx3edc
12y ago
This still doesn't convince me it was ever a beneficial design.
[–]
Domenic_S
OP
12y ago
I didn't claim it was beneficial, just consistent.