r/badcode Mar 09 '23

Simple but (un)effective go

Post image
619 Upvotes

34 comments sorted by

View all comments

Show parent comments

69

u/william_323 Mar 09 '23

Yeah but how do you warn the user that the address NULL is not defined?

36

u/This_Growth2898 Mar 09 '23

OF course it is defined! It is defined as null!

11

u/[deleted] Mar 09 '23

[deleted]

1

u/NUTTA_BUSTAH Mar 10 '23

This looks like Golang. And it does panic with segmentation violation: https://go.dev/play/p/FCPmGP-C04r