Хочется странного. А есть такой ЯП, где truthy только true, а falsy только false? И никакого implicit type coercion в этом случае, естественно. Числа, строки, null, объекты всё это ни то, ни другое. И если пишешь int x = 5; if (x)… то получаешь ERROR EXPRESSION IS NOT BOOLEAN.

#lang_ru #программирование #вопросы

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.