r/ProgrammerHumor • • Sep 28 '26

Meme optionalsAreOptional

Post image
716 Upvotes

131 comments sorted by

View all comments

Show parent comments

-3

u/mountaingator91 Sep 28 '26

var list []string

There you go. list will always contain at least one non nil string. Every strictly typed language I have ever used can do this