3 ms·
Zero being a present value and truthy makes sense to me--same as Ruby. [] being truthy is the same as Ruby, but somewhat of a gotcha as an empty vector [] does
by karmakaze 7y ago
Zero being a present value and truthy makes sense to me--same as Ruby.
[] being truthy is the same as Ruby, but somewhat of a gotcha as an empty vector [] does not have the same truthiness as an empty list '() aka nil.