Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
1qaz2wsx3edc
· 12y ago · 0 comments
While you're at it why don't you fix: (needle, haystack), (haystack, needle)? :P
Comments
[–]
Domenic_S
12y ago
With array functions, the needle is first. With string functions, the haystack is first.
https://gist.github.com/salathe/1672543
[–]
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
OP
12y ago
This still doesn't convince me it was ever a beneficial design.
[–]
Domenic_S
12y ago
I didn't claim it was beneficial, just consistent.
[–]
e-tron
12y ago
Or even use a proper IDE to code other than gedit/notepad !!