Open gausby opened 9 years ago
I think we'll need the NSA in on this.
What if only one of @feross or @mafintosh get stuck in an elevator? I feel the implementation behavior here is undefined.
@stuartpb We'll need to make two new modules and refactor this module like this:
module.exports = function () {
return require('is-feross-stuck-in-an-elevator')() && require('is-mafintosh-stuck-in-an-elevator')()
}
What if the elevator gets stuck in @feross and/or @mafintosh? Need more clarification
@feross i don't know, maybe we can abstract it out:
return require('is-entity-stuck-in-entity')(people['feross'], transports['elevator']) && require('is-entity-stuck-in-entity')(people['mafintosh'], transports['elevator'])
though maybe it really could be even more general:
require('is-entity-condition-qualifier-entity')(f, 'stuck', 'in', m)
@jbenet I like the second approach as it is more generic. Would it return a Boolean
?
@fnky not flexible enough. maybe a function() { return Boolean(true) }
@jbenet I meant you should be able to set the conditions for when an entity is stuck or not.
I have only tested this with simulation. My model of reality could very well differ from the real reality.