Hacker News new | ask | show | jobs
by luckydude 1949 days ago
I'll grant you it is sort of weird. I think that's a perl thing, we just copied how they did it.

undef is both a function and a (non) value. It is the main reason Little never got pushed back into tcl, the tcl crowd hates the idea that there can be a value for a variable that is undefined. I found that very useful, for example, undef is the error return from any function. Just made sense to me, didn't make sense to the Tcl people.