cuddly-keyboard-70746
02/22/2023, 5:14 AMadventurous-ocean-93733
02/22/2023, 7:45 AMadventurous-ocean-93733
02/22/2023, 7:49 AMgorgeous-airport-54386
02/22/2023, 7:55 AMadventurous-ocean-93733
02/22/2023, 7:57 AMsome-airline-73512
02/22/2023, 9:17 AMhappy-knife-63802
02/22/2023, 10:08 AMorange-umbrella-16693
02/22/2023, 1:21 PMorange-umbrella-16693
02/22/2023, 1:21 PMorange-umbrella-16693
02/22/2023, 1:21 PMmysterious-car-3675
02/22/2023, 1:37 PMlate-king-98305
02/22/2023, 1:45 PMnull
gets introduced via data that isn't expected. This was a surprise, given a) the "look how safe it makes your code!" claims given by its fans; and b) contrasted with Kotlin, which does enforce its nullability checks even when interoperating with Java code.
IOW - just because something looks null now doesn't mean you wouldn't encounter it IRL, even if the code thinks it can't be.mysterious-car-3675
02/22/2023, 1:49 PMas X
without X being valid it is an escape hatch. It enforce at compile time, not runtime. If you have a runtime invariant, no its not magic. But I'm talking about compile time issues in htmx. You'd have to write 100% code coverage to get the same tests I'm talking aboutmysterious-car-3675
02/22/2023, 1:52 PMorange-umbrella-16693
02/22/2023, 1:53 PMdocument.GetElementById
returns Element | null
, and if you want to do anything (that would cause a runtime error if it were null like calling a method) on it you have to check if it's not null, otherwise it complains.mysterious-car-3675
02/22/2023, 1:54 PMorange-umbrella-16693
02/22/2023, 1:54 PMmysterious-car-3675
02/22/2023, 1:55 PM?.
that handle it without being obtusemysterious-car-3675
02/22/2023, 1:56 PMlate-king-98305
02/22/2023, 1:57 PMmysterious-toddler-20573
02/22/2023, 1:58 PMlate-king-98305
02/22/2023, 1:58 PM?.
in ES now?mysterious-car-3675
02/22/2023, 1:58 PMgorgeous-airport-54386
02/22/2023, 1:59 PMmysterious-car-3675
02/22/2023, 1:59 PMmysterious-toddler-20573
02/22/2023, 1:59 PMgorgeous-airport-54386
02/22/2023, 2:00 PMrefined-waiter-90422
02/22/2023, 2:00 PM