{"id":618,"date":"2026-11-10T04:46:30","date_gmt":"2026-11-10T04:46:30","guid":{"rendered":"https:\/\/wiki.designcorner.co.ke\/?dc_term=anonymous-variable"},"modified":"2026-11-10T08:03:23","modified_gmt":"2026-11-10T08:03:23","slug":"anonymous-variable","status":"publish","type":"dc_term","link":"https:\/\/wiki.designcorner.co.ke\/?dc_term=anonymous-variable","title":{"rendered":"Anonymous Variable"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What it is<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Languages such as Prolog, Python and others use _ to say &#039;there is a value here but we don&#039;t care what it is&#039;, for example when unpacking data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why it matters for your business<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">It is a small detail that helps developers write cleaner, more intentional code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-world example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A developer wrote &#039;for _ in range(5)&#039; to repeat an SMS retry five times without needing the counter.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Design Corner tip<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Clean, readable code is cheaper to maintain; ask for it.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>In some programming languages, a placeholder variable, often written _, whose value is ignored.<\/p>\n","protected":false},"featured_media":0,"template":"","dc_letter":[6],"dc_topic":[59,34],"class_list":["post-618","dc_term","type-dc_term","status-publish","hentry","dc_letter-a","dc_topic-programming","dc_topic-software-and-development"],"_links":{"self":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term"}],"about":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/types\/dc_term"}],"version-history":[{"count":1,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/618\/revisions"}],"predecessor-version":[{"id":802,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/618\/revisions\/802"}],"wp:attachment":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=618"}],"wp:term":[{"taxonomy":"dc_letter","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_letter&post=618"},{"taxonomy":"dc_topic","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_topic&post=618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}