chris-hatton
05/02/2017, 11:25 AMnull
elements in streams. In cases where null
is notionally valid; such as a stream to fetch some cached user data, where there may be none... is it advisable to model these as exceptions NoUserDataException
?wasyl
05/02/2017, 11:26 AMclass CachedData {
List<Data> data; // might be null
}
chris-hatton
05/02/2017, 11:27 AMchris-hatton
05/02/2017, 11:27 AMchris-hatton
05/02/2017, 11:27 AMwasyl
05/02/2017, 11:28 AMchris-hatton
05/02/2017, 11:28 AMchris-hatton
05/02/2017, 11:28 AMwasyl
05/02/2017, 11:28 AMnull
when there’s no data yet?chris-hatton
05/02/2017, 11:29 AMchris-hatton
05/02/2017, 11:29 AMwasyl
05/02/2017, 11:29 AMchris-hatton
05/02/2017, 11:30 AMchris-hatton
05/02/2017, 11:30 AMchris-hatton
05/02/2017, 11:30 AMwasyl
05/02/2017, 11:31 AMchris-hatton
05/02/2017, 11:31 AMchris-hatton
05/02/2017, 11:31 AMchris-hatton
05/02/2017, 11:31 AMwasyl
05/02/2017, 11:32 AM