{"id":3603,"date":"2008-11-05T12:33:00","date_gmt":"2008-11-05T12:33:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/vbteam\/2008\/11\/05\/typeless-expressions-lucian-wischik\/"},"modified":"2024-07-05T14:03:57","modified_gmt":"2024-07-05T21:03:57","slug":"typeless-expressions-lucian-wischik","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/vbteam\/typeless-expressions-lucian-wischik\/","title":{"rendered":"Typeless expressions (Lucian Wischik)"},"content":{"rendered":"<p>&#8220;My dog has no type.&#8221;<br \/>&#8220;How does he smell?&#8221;<br \/>&#8220;<a class=\"\" title=\"Awful!\" href=\"http:\/\/en.wikipedia.org\/wiki\/Joke_warfare\">Awful!<\/a>&#8220;<\/p>\n<p>Two of the new features of VB10 &#8212; <em>array literals<\/em> and <em>multi-line lambdas<\/em> &#8212; are interesting from the language perspective because their expressions have no type! This article is for language lawyers. I remember at my very first undergraduate computer science lecture, the lecturer <a class=\"\" title=\"Frank King\" href=\"http:\/\/www.cl.cam.ac.uk\/intro\/overview\/node4.html#SECTION000420000000000000000\">Frank King<\/a> handed out the class list and asked for corrections. One student raised his hand, apologized for being pedantic, and said that his name had an &#8220;&aring;&#8221; with a ring above it, not a plain &#8220;a&#8221;. Dr King praised him for the correction, saying &#8220;computer science needs pedants&#8221;.<\/p>\n<p>On my personal blog I&#8217;ve written in detail about the <a class=\"\" title=\"typeless VB expressions\" href=\"http:\/\/blogs.msdn.com\/lucian\/archive\/2008\/11\/05\/my-dog-has-no-type.aspx\">VB expressions that have no type<\/a>: <em>Nothing<\/em>, <em>Lambdas<\/em>, <em>Array Literals<\/em>, <em>AddressOf<\/em> and <em>CallsToSubs<\/em>. To be pedantic, we&#8217;re not talking about &#8220;Option Strict Off&#8221;. We&#8217;re talking about strongly-typed VB, with Option Strict On, and about which type the compiler picks for these expressions. Answer: it depends on the context they&#8217;re in&#8230;<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;My dog has no type.&#8221;&#8220;How does he smell?&#8221;&#8220;Awful!&#8220; Two of the new features of VB10 &#8212; array literals and multi-line lambdas &#8212; are interesting from the language perspective because their expressions have no type! This article is for language lawyers. I remember at my very first undergraduate computer science lecture, the lecturer Frank King handed [&hellip;]<\/p>\n","protected":false},"author":260,"featured_media":8818,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[192,195],"tags":[99],"class_list":["post-3603","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-featured","category-visual-basic","tag-lucian-wischik"],"acf":[],"blog_post_summary":"<p>&#8220;My dog has no type.&#8221;&#8220;How does he smell?&#8221;&#8220;Awful!&#8220; Two of the new features of VB10 &#8212; array literals and multi-line lambdas &#8212; are interesting from the language perspective because their expressions have no type! This article is for language lawyers. I remember at my very first undergraduate computer science lecture, the lecturer Frank King handed [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/posts\/3603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/users\/260"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/comments?post=3603"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/posts\/3603\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/media\/8818"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/media?parent=3603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/categories?post=3603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/tags?post=3603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}