« Return to Thread: proposal to make null string handling more emacs-y

Re: proposal to make null string handling more emacs-y

by Lars Ingebrigtsen :: Rate this Message:

| View in Thread

Stefan Monnier <monnier@...> writes:

> I can believe that (it's often handy to use "nil-in-nil-out" when
> composing functions which may return nil).  But there's also the risk
> that you hide real errors, leading to weird behaviors that are more
> difficult to track down.

I see allowing more nil values in string-ey functions as a very Lisp-ey
thing to do.

I'm really really happy that Emacs Lisp isn't Scheme-like.  Stuff like

(assq 'foo bar) ⇒  #f

would just drive me totally batty.

Battier.

--
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/

 « Return to Thread: proposal to make null string handling more emacs-y