[DiscordArchive] so anyone knows why the `empty()` check got removed?
[DiscordArchive] so anyone knows why the `empty()` check got removed?
Archived author: Roboto • Posted: 2021-05-20T22:06:56.135000+00:00
Original source
since it got reverted
Archived author: Kitzunu • Posted: 2021-05-20T22:06:58.472000+00:00
Original source
hold, Master Yehonal is typing!
Archived author: Yehonal • Posted: 2021-05-20T22:07:00.461000+00:00
Original source
probably that check should be integrated here directly:
```
[[nodiscard]] bool IsNull() const
{
return data.value == nullptr;
}
```
Archived author: Roboto • Posted: 2021-05-20T22:07:01.262000+00:00
Original source
haha
Archived author: Yehonal • Posted: 2021-05-20T22:08:06.093000+00:00
Original source
as <@!175631911450836993> said binary fields are treated differently
Archived author: Kitzunu • Posted: 2021-05-20T22:08:38.124000+00:00
Original source
We probably shouldnt change IsNull tho as it shouldnt be used for binary then
Archived author: Kitzunu • Posted: 2021-05-20T22:09:00.875000+00:00
Original source
either we could just check empty() or make a function of it
Archived author: Roboto • Posted: 2021-05-20T22:09:15.780000+00:00
Original source
I wouldn't wanna break other stuff that uses it though
Archived author: Yehonal • Posted: 2021-05-20T22:09:34.999000+00:00
Original source
it's barely used that's why we did't discovered it before
Archived author: Kitzunu • Posted: 2021-05-20T22:09:36.719000+00:00
Original source
Yea, IsNull is also used for game_event TIMESTAMP