all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* split-string behavior change
@ 2008-02-25  1:10 Drew Adams
  2008-02-25  1:27 ` Nick Roberts
  2008-02-25  2:11 ` Stephen J. Turnbull
  0 siblings, 2 replies; 5+ messages in thread
From: Drew Adams @ 2008-02-25  1:10 UTC (permalink / raw)
  To: Emacs-Devel

I'm not suggesting we change anything now, but I'm curious about the change
in behavior of split-string from Emacs 21 to 22.

Emacs 20, 21: (split-string "abc" "") gives ("a" "b" "c")

Emacs 22: (split-string "abc" "")   gives ("" "a" "b" "c" "")
     and: (split-string "abc" "" t) gives ("a" "b" "c")

IOW, we added an optional third arg, for which the non-nil value - not the
nil value, gives the same result as before. And using the same code as
before, with no third arg, now gives a different result (breaks).

That seems backward, to me. Why wasn't the polarity of the new OMIT-NULLS
arg reversed (and so called INCLUDE-NULLS)?

If this change was a mistake, so be it. But if it was conscious decision and
not a mistake, then I'm curious to know the reason for it.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-02-25  2:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-25  1:10 split-string behavior change Drew Adams
2008-02-25  1:27 ` Nick Roberts
2008-02-25  2:00   ` Drew Adams
2008-02-25  2:11 ` Stephen J. Turnbull
2008-02-25  2:26   ` Drew Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.