{"id":503,"date":"2023-06-14T19:22:53","date_gmt":"2023-06-14T18:22:53","guid":{"rendered":"https:\/\/ibex.tech\/blockchain\/?p=503"},"modified":"2023-06-14T19:43:55","modified_gmt":"2023-06-14T18:43:55","slug":"types","status":"publish","type":"post","link":"https:\/\/ibex.tech\/blockchain\/cardano\/programming\/aiken\/memory\/types","title":{"rendered":"Types"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\">Primitive types<\/h5>\n\n\n<p style=\"padding-left: 40px;\">boolean<\/p>\n<p style=\"padding-left: 80px;\">True or False<\/p>\n<p style=\"padding-left: 40px;\">integer<\/p>\n<p style=\"padding-left: 80px;\">Arbitrary sized integer (there is no underflow or overflow).<\/p>\n<p style=\"padding-left: 40px;\">string<\/p>\n<p style=\"padding-left: 80px;\">UTF8 encoded binaries<br \/>The use case for strings is extremely narrow in Aiken and on-chain code, they are only used for tracing, a bit like labels attached to specific execution paths of your program. Most of the time, you probably want to use a ByteArray instead and only resort to String for debugging.<\/p>\n<p style=\"padding-left: 40px;\">byte arrays<\/p>\n<p style=\"padding-left: 40px;\">data<\/p>\n<p style=\"padding-left: 40px;\">void<\/p>\n\n\n<p>These are built in the language and can be typed as literals<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Base building blocks<\/h5>\n\n\n<p style=\"padding-left: 40px;\">list<\/p>\n<p style=\"padding-left: 40px;\">tuple<\/p>\n\n\n<p>For associating types together<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Primitive types boolean True or False integer Arbitrary sized integer (there is no underflow or overflow). string UTF8 encoded binariesThe use case for strings is extremely narrow in Aiken and on-chain code, they are only used for tracing, a bit like labels attached to specific execution paths of your program. Most of the time, you [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-503","post","type-post","status-publish","format-standard","hentry","category-memory"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/blockchain\/wp-json\/wp\/v2\/posts\/503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/blockchain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/blockchain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/blockchain\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/blockchain\/wp-json\/wp\/v2\/comments?post=503"}],"version-history":[{"count":5,"href":"https:\/\/ibex.tech\/blockchain\/wp-json\/wp\/v2\/posts\/503\/revisions"}],"predecessor-version":[{"id":522,"href":"https:\/\/ibex.tech\/blockchain\/wp-json\/wp\/v2\/posts\/503\/revisions\/522"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/blockchain\/wp-json\/wp\/v2\/media?parent=503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/blockchain\/wp-json\/wp\/v2\/categories?post=503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/blockchain\/wp-json\/wp\/v2\/tags?post=503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}