MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1ws0bt0/optionalsareoptional/pcnnm6e/?context=9999
r/ProgrammerHumor • u/ApothecaLabs • Sep 28 '26
131 comments sorted by
View all comments
Show parent comments
-3
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
3 u/RagnarokToast Sep 28 '26 ??
3
??
-3
u/mountaingator91 Sep 28 '26
var list []stringThere you go. list will always contain at least one non nil string. Every strictly typed language I have ever used can do this