|
From: | Steve Yegge |
Subject: | Re: proposal to make null string handling more emacs-y |
Date: | Thu, 26 Apr 2012 16:52:31 -0700 |
Steve Yegge <address@hidden> writes:Maybe. But I think such changes must be justified on a case-by-case
> There's a lot of code out there that's forced to do type assertions on
> string args that could be simplified if these common functions could
> accept nils.
basis, with convincing use-cases ("in this very common situation, a nil
naturally turns up where a string was expected").
Type-checking catches a lot of bugs, even in "loose" languages like lisp
and end-user-targeted languages like elisp -- and I think the trend is
generally towards _stricter_ checking and less fuzziness, even in
scripting languages.
-miles
--
Egotist, n. A person of low taste, more interested in himself than in me.
[Prev in Thread] | Current Thread | [Next in Thread] |