News for hackers. Stuff that matters.
Re:GoKart: A static analysis tool for securing Go code by mattnewton on Wednesday August 18, 2021 @08:42PM (#28229043)
Afaik this is impossible in swift and kotlin, only optional values can contain nill.
Re:GoKart: A static analysis tool for securing Go code by tbarbugli on Wednesday August 18, 2021 @10:16PM (#28229603)
Try Core Data with Swift and you will see that happening. Lazy objects (vaults) are mapped from objc into Swift and will happily crash on something like a = b where both are not optional.
Re:GoKart: A static analysis tool for securing Go code by mattnewton on Thursday August 19, 2021 @11:45AM (#28235299)
This is happening in objc code or in the swift part? I'm not terribly surprised though, my one experience with core data was miserable once we strayed even a little from the happy path and I ended up rolling my own since we didn't need full functionality anyways. And this was for an internal app, at Apple ┐( ∵ )┌
Re:GoKart: A static analysis tool for securing Go code by logical42 on Thursday August 19, 2021 @03:20PM (#28238119)
It's possible in Java.
Re:GoKart: A static analysis tool for securing Go code by mattnewton on Thursday August 19, 2021 @03:48PM (#28238458)
Right, because the language has the "million dollar mistake" of nullable references by default, which you cannot change without breaking code. And the original comment was bemoaning that Go choose to to have nullable references by default too.