Have read Splitting Strings by Chris Zetter mini saga…
What this expression:
"".split(",")
shall produce?
Python, JS, Sciter (now):
"".split(",") -> [""]
Ruby, Perl, AWK, Sciter (while ago):
"".split(",") -> []
That reminded me that initially in Sciter I’ve implemented the function in Ruby/Perl way as it looked more natural at that moment.
And only recently redesigned the String.split()
to follow JavaScript way.