Closed HeidiSeibold closed 7 years ago
but well-documented behavior.....
NULL is the default, which implieds ids = findNotSubmitted
You're right. I just had a typo somewhere and this lead to me submitting all jobs, so I thought this may frustrate people.
You can just ignore it if you want and close :monkey:
changing the defaults is always a bit bad lets wait what michel says
another option would be not submit nothing on NULL, thats more conservative (but changes behavior)
I think it's fairly common to have NULL
be the place holder to pass whenever you want to get the default behavior. Also, the empty set can be represented by integer(0)
, i.e. it's important not to test for length(ids) == 0
but is.null(ids)
when inferring the default. My $.02
I think it's fairly common to have NULL be the place holder to pass whenever you want to get the default behavior.
Thats the default in all of my projects now (because "missing()" in R is somewhat broken and bad)
I'll stick to NULL
as default, missing
is not working reliably. integer(0)
and a zero-row data.frame can be used to express "no ids".
Maybe not the most intuituve behaviour :)