Typeless expressions (Lucian Wischik)

Published 05 November 08 09:33 AM

"My dog has no type."
"How does he smell?"
"Awful!"

Two of the new features of VB10 -- array literals and multi-line lambdas -- 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 out the class list and asked for corrections. One student raised his hand, apologized for being pedantic, and said that his name had an "å" with a ring above it, not a plain "a". Dr King praised him for the correction, saying "computer science needs pedants".

On my personal blog I've written in detail about the VB expressions that have no type: Nothing, Lambdas, Array Literals, AddressOf and CallsToSubs. To be pedantic, we're not talking about "Option Strict Off". We'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're in...

by VBTeam
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Typeless expressions (Lucian Wischik) | MS Tech News said on November 5, 2008 12:51 PM:

PingBack from http://mstechnews.info/2008/11/typeless-expressions-lucian-wischik/

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

This Blog

Syndication

Page view tracker