Hacker News new | ask | show | jobs
by drewcoo 2270 days ago
But if "instead of" means "I expected," doesn't that also mean that Javascript and Python don't do what you expected?
1 comments

JS & python both have:

'//'.split('/') => [ '', '', '' ] '/'.split('/') => [ '', '' ] '',split('/') => [ '' ]

so they indeed produce what parent expected.