Re: Bug#802595: ITP: node-defined -- return the first argument that is `!== undefined`
Steve McIntyre wrote:
> Ross Gammon wrote:
> >* Package name : node-defined
> > Version : 1.0.0
> > Upstream Author : James Halliday <firstname.lastname@example.org>
> >* URL : https://github.com/substack/defined
> >* License : Expat
> > Description : return the first argument that is `!== undefined`
> > Most of the time when you chain together ||s, you actually just want the
> > first item that is not undefined, not the first non-falsy item.
> > .
> > This module is like the defined-or (//) operator in perl 5.10+.
> > .
> >This package is required for tape
> >(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798278) and will be
> code. :-(
> I appreciate you're just following through a dependency chain from
> upstream for tape, but please push back on upstream and ask them why
> they're doing this kind of ridiculous split-up. Code re-use in general
> is a good plan, but not at the level of every trivial helper function
> being split out into its own library!
"why" is because node (and other modern languages) make it easy to
create a package for any particular bit of reusable code. That Debian
fails to support that is Debian's problem, not upstream's.
- Josh Triplett