<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>VB10</title><link>http://www.panopticoncentral.net/category/26.aspx</link><description>VB10</description><dc:language>en-US</dc:language><generator>.Text Version 0.95.2004.102</generator><item><dc:creator>Paul Vick</dc:creator><title>Collection initializer expressions</title><link>http://www.panopticoncentral.net/archive/2008/05/05/23212.aspx</link><pubDate>Mon, 05 May 2008 18:23:00 GMT</pubDate><guid>http://www.panopticoncentral.net/archive/2008/05/05/23212.aspx</guid><category>VB10</category><category domain="http://www.microsoft.com/blogs">Visual Basic</category><wfw:comment>http://www.panopticoncentral.net/comments/23212.aspx</wfw:comment><comments>http://www.panopticoncentral.net/archive/2008/05/05/23212.aspx#Feedback</comments><slash:comments>21</slash:comments><wfw:commentRss>http://www.panopticoncentral.net/comments/commentRss/23212.aspx</wfw:commentRss><trackback:ping>http://www.panopticoncentral.net/services/trackbacks/23212.aspx</trackback:ping><description>&lt;p&gt;&lt;em&gt;WARNING: This is a &lt;A href="http://www.panopticoncentral.net/archive/2007/10/03/22266.aspx"&gt;speculative post&lt;/a&gt;. Caveat emptor.&lt;/em&gt;  &lt;p&gt;Well, I appear to be on a rhythm of about once a month posts, which seems OK for the moment. Moving on to another "future" topic, one of the most annoying things that we cut (at least, from my perspective) from VB 2008 was collection initializers. Collection initializers were a little different than the corresponding C# feature, because our plan was to introduce stand-alone initializers that didn't have any intrinsic type. Instead the initializers "snap to" a particular type when they're converted to it, just like lambdas and AddressOf expressions. For example:&lt;pre class="code"&gt;&lt;span style="color: green"&gt;' This works since VB 7.0!
&lt;/span&gt;&lt;span style="color: blue"&gt;Dim &lt;/span&gt;a() &lt;span style="color: blue"&gt;As Integer &lt;/span&gt;= {1, 2, 3, 4}
&lt;span style="color: green"&gt;' This now creates a list.
&lt;/span&gt;&lt;span style="color: blue"&gt;Dim &lt;/span&gt;b() &lt;span style="color: blue"&gt;As &lt;/span&gt;List(&lt;span style="color: blue"&gt;Of Integer&lt;/span&gt;) = {1, 2, 3, 4}
&lt;span style="color: green"&gt;' This assigns a new list to b.
&lt;/span&gt;b = {5, 6, 7, 8}

&lt;span style="color: green"&gt;' If M takes Integer(), that's what it'll get. If it takes List(Of Integer), that's what it'll get.
&lt;/span&gt;M({1, 2, 3, 4, 5})&lt;/pre&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;This is kind of nice, in that you can initialize collection types and arrays without having to state a type at all. We do the same trick C# does about looking for an Add method on a object that implements IEnumerable, so you can also use this syntax to initialize dictionaries:&lt;/p&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;Dim &lt;/span&gt;d &lt;span style="color: blue"&gt;As &lt;/span&gt;Dictionary(&lt;span style="color: blue"&gt;Of Integer&lt;/span&gt;, &lt;span style="color: blue"&gt;String&lt;/span&gt;) = {{1, &lt;span style="color: #a31515"&gt;"One"&lt;/span&gt;}, {2, &lt;span style="color: #a31515"&gt;"Two"&lt;/span&gt;}, {3, &lt;span style="color: #a31515"&gt;"Three"&lt;/span&gt;}}&lt;/pre&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;All this is pretty straightforward, but there is some discussion about what type you should get if there is an absence of a target type. For example, assuming that local type inference is on, what should the following be typed as?&lt;/p&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;Dim &lt;/span&gt;x = {1, 2, 3, 4}
&lt;/pre&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;Our initial thought was that we should just infer the dominant type of the initializer and then create an array of that type. So the above example would type x as Integer(). And then the following:&lt;/p&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;Dim &lt;/span&gt;y = {{1, 2}, {3, 4}, {5, 6}}&lt;/pre&gt;
&lt;p&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;Would infer a type of Integer(,), a two-dimensional array of Integer. With more nesting, you'd get more dimensional arrays. However, as we talked about it more, it seemed like maybe it might be more useful to infer List(Of T) for the 1-dimensional initalizer, Dictionary(Of K, V) for the 2-dimensional initializer, and nothing for more dimensions. So the type of x would instead be List(Of Integer) and the type of y would be Dictionary(Of Integer, Integer).&lt;/p&gt;
&lt;p&gt;Both seem reasonable, so I'm curious what people would think. Remember, we will only fill in a type if we're in a context (like type inference) where there's no target type to use. We'll always use a target type if there is one.&lt;/p&gt;&lt;img src ="http://www.panopticoncentral.net/aggbug/23212.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Paul Vick</dc:creator><title>Implicitly implemented interfaces</title><link>http://www.panopticoncentral.net/archive/2008/04/07/23114.aspx</link><pubDate>Mon, 07 Apr 2008 15:59:00 GMT</pubDate><guid>http://www.panopticoncentral.net/archive/2008/04/07/23114.aspx</guid><category>VB10</category><category domain="http://www.microsoft.com/blogs">Visual Basic</category><wfw:comment>http://www.panopticoncentral.net/comments/23114.aspx</wfw:comment><comments>http://www.panopticoncentral.net/archive/2008/04/07/23114.aspx#Feedback</comments><slash:comments>28</slash:comments><wfw:commentRss>http://www.panopticoncentral.net/comments/commentRss/23114.aspx</wfw:commentRss><trackback:ping>http://www.panopticoncentral.net/services/trackbacks/23114.aspx</trackback:ping><description>&lt;p&gt;&lt;em&gt;WARNING: This is a &lt;a href="http://www.panopticoncentral.net/archive/2007/10/03/22266.aspx"&gt;speculative post&lt;/a&gt;. Caveat emptor.&lt;/em&gt; &lt;p&gt;This one is a little more speculative than the others, but it’s something that we’d like to get some feedback on. One complaint that we get from time to time has to do with interface implementation. A lot of people like the fact that there’s a nice explicit interface implementation syntax in VB, but sometimes it starts to feel, well, a little &lt;em&gt;verbose&lt;/em&gt;. Even if you let the IDE create all the interface implementations for you, there’s still a lot of extra characters with all those “Implements IFoo.Bar”s, especially when the implementing method is the same name as the interface method. &lt;p&gt;One idea we’ve been kicking around is relaxing our rules to allow for implicit interface implementation. Today, when we’re checking interface implementation for some interface I1 what we do is: &lt;ul&gt; &lt;li&gt;Check to see if any base classes implement any of the members of I1. If so, we mark those methods as implemented.&lt;/li&gt; &lt;li&gt;Check to see if the current class implements any of the members of I1. If so, we mark those methods as implemented. If the current class implements a method that a base class implemented, the current class replaces that implementation.&lt;/li&gt; &lt;li&gt;If all of the methods of I1 are not implemented, we give an error.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;What we would do is slightly modify the rules to:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Check to see if any base classes implement any of the members of I1. If so, we mark those methods as implemented.&lt;/li&gt; &lt;li&gt;Check to see if the current class implements any of the members of I1. If so, we mark those methods as implemented. If the current class implements a method that a base class implemented, the current class replaces that implementation.&lt;/li&gt; &lt;li&gt;&lt;em&gt;If there are any methods of I1 that are not implemented, we check to see if there is a method with the same name and signature in the current class, and if there is, then that method implements the interface method.&lt;/em&gt;&lt;/li&gt; &lt;li&gt;If all of the methods of I1 are not implemented, we give an error.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;What this would mean is that you could do something like this:&lt;/p&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;Class &lt;/span&gt;C1
    &lt;span style="color: blue"&gt;Implements &lt;/span&gt;IComparable(&lt;span style="color: blue"&gt;Of Integer&lt;/span&gt;)

    &lt;span style="color: blue"&gt;Public Function &lt;/span&gt;CompareTo(&lt;span style="color: blue"&gt;ByVal &lt;/span&gt;other &lt;span style="color: blue"&gt;As Integer&lt;/span&gt;) &lt;span style="color: blue"&gt;As Integer

    End Function
End Class
&lt;/span&gt;&lt;/pre&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;And not get any errors. There are a couple of things to note here if you’re familiar with C#, though. First, unlike in C#, if you declare a method in a derived class that has the same name as an interface method that is declared in a base class, you will still have to explicitly implement the interface method if you want the derived class method to take over. For example:&lt;/p&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;Class &lt;/span&gt;Derived
    &lt;span style="color: blue"&gt;Inherits &lt;/span&gt;Base
    &lt;span style="color: blue"&gt;Implements &lt;/span&gt;IComparable(&lt;span style="color: blue"&gt;Of Integer&lt;/span&gt;)

    &lt;span style="color: green"&gt;' Will not take over IComparable(Of Integer).CompareTo since Base already implements it!
    &lt;/span&gt;&lt;span style="color: blue"&gt;Public Function &lt;/span&gt;CompareTo(&lt;span style="color: blue"&gt;ByVal &lt;/span&gt;other &lt;span style="color: blue"&gt;As Integer&lt;/span&gt;) &lt;span style="color: blue"&gt;As Integer

    End Function
End Class&lt;/span&gt;&lt;/pre&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;One could argue whether the derived class should or shouldn’t take over the implementation, but the bottom line is that if we allowed this we would be opening a potentially serious backwards compatibility problem. The above code could be written today (assuming Base implements IComparable(Of Integer)), and CompareTo will &lt;em&gt;not&lt;/em&gt; take over the implementation of the interface. If recompiling your application in some future version of VB switched the implementation, this could introduce a very subtle and possibly very bad bug into your program. So it’s really a non-starter.&lt;/p&gt;
&lt;p&gt;The other difference from C# is that we won’t search base classes for implicit interface implementations. For example, the following code would still give you an error:&lt;/p&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;Class &lt;/span&gt;Base
    &lt;span style="color: blue"&gt;Public Function &lt;/span&gt;CompareTo(&lt;span style="color: blue"&gt;ByVal &lt;/span&gt;other &lt;span style="color: blue"&gt;As Integer&lt;/span&gt;) &lt;span style="color: blue"&gt;As Integer

    End Function
End Class

Class &lt;/span&gt;Derived
    &lt;span style="color: blue"&gt;Inherits &lt;/span&gt;Base
    &lt;span style="color: green"&gt;' Error: IComparable(Of Integer).CompareTo is not implemented!
    &lt;/span&gt;&lt;span style="color: blue"&gt;Implements &lt;/span&gt;IComparable(&lt;span style="color: blue"&gt;Of Integer&lt;/span&gt;)
&lt;span style="color: blue"&gt;End Class&lt;/span&gt;&lt;/pre&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;This can also be debated, but in the end we tend to err on the side of being more conservative—since Base didn’t implement IComparable(Of Integer) itself, it seems odd to pick it up when implementing the interface, as we have no way of knowing for sure that it’s really appropriate. There are also other highly technical issues relating to the mechanics of interface implementation that would make this situation complicated, especially if Base was in another assembly that we had no control over.&lt;/p&gt;
&lt;p&gt;So the question is: would people find this useful? Annoying?&lt;/p&gt;&lt;img src ="http://www.panopticoncentral.net/aggbug/23114.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Paul Vick</dc:creator><title>Automatically implemented properties</title><link>http://www.panopticoncentral.net/archive/2008/03/27/23050.aspx</link><pubDate>Thu, 27 Mar 2008 15:30:00 GMT</pubDate><guid>http://www.panopticoncentral.net/archive/2008/03/27/23050.aspx</guid><category>VB10</category><category domain="http://www.microsoft.com/blogs">Visual Basic</category><wfw:comment>http://www.panopticoncentral.net/comments/23050.aspx</wfw:comment><comments>http://www.panopticoncentral.net/archive/2008/03/27/23050.aspx#Feedback</comments><slash:comments>30</slash:comments><wfw:commentRss>http://www.panopticoncentral.net/comments/commentRss/23050.aspx</wfw:commentRss><trackback:ping>http://www.panopticoncentral.net/services/trackbacks/23050.aspx</trackback:ping><description>&lt;p&gt;&lt;em&gt;WARNING: This is a &lt;a href="http://www.panopticoncentral.net/archive/2007/10/03/22266.aspx"&gt;speculative post&lt;/a&gt;. Caveat emptor.&lt;/em&gt;&lt;/p&gt; &lt;p&gt;I apologize for the long silence, things have been a little busy around Panopticon Central these days! Anyway, I wanted to go back to talking about some of the things that we’re thinking about for the next version, and I thought I’d go over a small one: automatically implemented properties. As the name implies, these would be basically the same thing you get in C# 3.0’s &lt;a href="http://msdn2.microsoft.com/en-us/library/bb384054.aspx"&gt;auto-implemented properties&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;What we’re talking about is allowing you to have a simple property declaration like so:&lt;/p&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;Public Property &lt;/span&gt;x() &lt;span style="color: blue"&gt;As Integer&lt;/span&gt;&lt;/pre&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;This would generally expand under the covers to look something like this:&lt;/p&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;Private &lt;/span&gt;_x &lt;span style="color: blue"&gt;As Integer
Public Property &lt;/span&gt;x() &lt;span style="color: blue"&gt;As Integer
    Get
        Return &lt;/span&gt;_x
    &lt;span style="color: blue"&gt;End Get
    Set&lt;/span&gt;(&lt;span style="color: blue"&gt;ByVal &lt;/span&gt;value &lt;span style="color: blue"&gt;As Integer&lt;/span&gt;)
        _x = value
    &lt;span style="color: blue"&gt;End Set
End Property&lt;/span&gt;&lt;/pre&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;The one major difference that we’re considering from C#’s auto-implemented properties is to allow initializers on the auto-implemented property. In other words, something like:&lt;/p&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;Public Property &lt;/span&gt;x &lt;span style="color: blue"&gt;As Integer &lt;/span&gt;= 10
&lt;span style="color: blue"&gt;Public Property &lt;/span&gt;y &lt;span style="color: blue"&gt;As New &lt;/span&gt;List(&lt;span style="color: blue"&gt;Of Integer&lt;/span&gt;)()&lt;/pre&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;I think C# also doesn’t let you bind to the underlying field, but just like with other auto-generated stuff in VB, I think we’d err on the side of allowing you to bind to it if you really needed to. You can also make them Overridable if you like, to allow derived classes to provide their own implementation.&lt;/p&gt;
&lt;p&gt;Just a little feature, but one that can be useful.&lt;/p&gt;&lt;img src ="http://www.panopticoncentral.net/aggbug/23050.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Paul Vick</dc:creator><title>Implicit line continuations</title><link>http://www.panopticoncentral.net/archive/2008/02/27/22910.aspx</link><pubDate>Wed, 27 Feb 2008 16:55:00 GMT</pubDate><guid>http://www.panopticoncentral.net/archive/2008/02/27/22910.aspx</guid><category>VB10</category><category domain="http://www.microsoft.com/blogs">Visual Basic</category><wfw:comment>http://www.panopticoncentral.net/comments/22910.aspx</wfw:comment><comments>http://www.panopticoncentral.net/archive/2008/02/27/22910.aspx#Feedback</comments><slash:comments>38</slash:comments><wfw:commentRss>http://www.panopticoncentral.net/comments/commentRss/22910.aspx</wfw:commentRss><trackback:ping>http://www.panopticoncentral.net/services/trackbacks/22910.aspx</trackback:ping><description>&lt;p&gt;&lt;em&gt;WARNING: This is a &lt;a href="http://www.panopticoncentral.net/archive/2007/10/03/22266.aspx"&gt;speculative post&lt;/a&gt;. Caveat emptor.&lt;/em&gt;&lt;/p&gt; &lt;p&gt;One of the things that we'd &lt;em&gt;like&lt;/em&gt; to address in the next version is line continuations. We know that they tend to annoy many developers who want to break their logical lines across multiple physical lines, and we've gotten many requests to get rid of them altogether. Unfortunately, there's a reason we haven't just dropped them--they actually are needed in certain scenarios. For example, take the following contrived example:&lt;/p&gt;&lt;pre class="code"&gt;    &lt;span style="color: blue"&gt;Sub &lt;/span&gt;Main()
    &lt;span style="color: blue"&gt;End &lt;/span&gt;_
    &lt;span style="color: blue"&gt;Sub
&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;If I remove the line continuation, I'll now get a compile error because "End" now is the "End" statement, and the Sub looks like it's trying to start a new subroutine in the middle of the current subroutine. There are quite a few of these syntactic ambiguities sprinkled throughout our grammar, some of which might be quite obscure and unnoticed until someone's code actually broke. So instead of taking a maximalist approach and trying to remove the line continuation &lt;em&gt;everywhere&lt;/em&gt;, we've been thinking about a more minimalist approach and looking at where removing the line continuation might be most useful. This produced a much more tractable list of places where we might productively remove the line continuation. In particular:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;After binary operators in expression contexts. Note that this does not include assignment operators. For example:&lt;pre class="code"&gt;a = b +
    c&lt;/pre&gt;
&lt;li&gt;After the following punctuators: comma (","), open parenthesis ("("), open curly brace ("{"), begin embedded expression in XML ("&amp;lt;%="). For example: &lt;pre class="code"&gt;Console.WriteLine(
    &lt;span style="color: #a31515"&gt;"{0} {1}"&lt;/span&gt;,
    FirstName,
    LastName)
&lt;/pre&gt;
&lt;li&gt;Before the following punctuators: close parenthesis (")"), close curly brace ("}"), end embedded expression in XML ("%&amp;gt;"). For example:&lt;pre class="code"&gt;Console.WriteLine(
    &lt;span style="color: #a31515"&gt;"{0} {1}"&lt;/span&gt;,
    FirstName,
    LastName
)&lt;/pre&gt;
&lt;li&gt;After an open angle bracket ("&amp;lt;") in an attribute context, before a close angle bracket ("&amp;gt;") in an attribute context, and after a close angle bracket in a non-file-level attribute context (i.e. an attribute that does not specify "Assembly" or "Module"). For example: &lt;pre class="code"&gt;    &amp;lt;
        Conditional(&lt;span style="color: #a31515"&gt;"Foo"&lt;/span&gt;),
        Conditional(&lt;span style="color: #a31515"&gt;"Bar"&lt;/span&gt;)
    &amp;gt;
    &amp;lt;
        Conditional(&lt;span style="color: #a31515"&gt;"Baz"&lt;/span&gt;)
    &amp;gt;
    &lt;span style="color: blue"&gt;Sub &lt;/span&gt;Main()
    &lt;span style="color: blue"&gt;End Sub
&lt;/span&gt;&lt;/pre&gt;
&lt;li&gt;Before and after query expression operators. For example:&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;Dim &lt;/span&gt;ys = &lt;span style="color: blue"&gt;From &lt;/span&gt;x &lt;span style="color: blue"&gt;In &lt;/span&gt;xs
         &lt;span style="color: blue"&gt;Where &lt;/span&gt;x &amp;gt; 5
         &lt;span style="color: blue"&gt;Select&lt;/span&gt;
            ten = x * 10,
            twenty = x * 20,
            thirty = x * 30&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;One thing that is not currently on the list is allowing an implicit line continuation after a dot, so you couldn't break up "a.b.c" implicitly. It's not that we can't do dot, just that it's quite a bit more expensive and problematic for Intellisense. We'd be interested to hear if this is something people really want to/need to do, or if it's just a nice-to-have.&lt;/p&gt;
&lt;p&gt;Are there any other places that we missed that you can think of?&lt;/p&gt;&lt;img src ="http://www.panopticoncentral.net/aggbug/22910.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Paul Vick</dc:creator><title>Lang .NET 2008, Scripting, and Visual Basic</title><link>http://www.panopticoncentral.net/archive/2008/02/20/22883.aspx</link><pubDate>Wed, 20 Feb 2008 17:02:00 GMT</pubDate><guid>http://www.panopticoncentral.net/archive/2008/02/20/22883.aspx</guid><category>VB10</category><category domain="http://www.microsoft.com/blogs">Visual Basic</category><wfw:comment>http://www.panopticoncentral.net/comments/22883.aspx</wfw:comment><comments>http://www.panopticoncentral.net/archive/2008/02/20/22883.aspx#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.panopticoncentral.net/comments/commentRss/22883.aspx</wfw:commentRss><trackback:ping>http://www.panopticoncentral.net/services/trackbacks/22883.aspx</trackback:ping><description>&lt;p&gt;&lt;em&gt;WARNING: This is a &lt;a href="http://www.panopticoncentral.net/archive/2007/10/03/22266.aspx"&gt;speculative post&lt;/a&gt;. Caveat emptor.&lt;/em&gt;&lt;/p&gt; &lt;p&gt;Several weeks ago, I gave a presentation entitled &lt;em&gt;Bringing Scripting (Back) to Visual Basic&lt;/em&gt; at the Lang .NET 2008 conference. A &lt;a href="http://langnetsymposium.com/talks/2-04%20-%20Visual%20Basic%20-%20Paul%20Vick.html"&gt;video&lt;/a&gt; of the presentation has now been posted, so you can check it out for yourself. (The presentation was also covered by EWeek in an article entitled &lt;a href="http://www.eweek.com/c/a/Application-Development/Microsoft-Bringing-Sexy-Back-to-Visual-Basic/"&gt;Bringing Sexy Back to Visual Basic&lt;/a&gt;.)&lt;/p&gt; &lt;p&gt;The main theme of the presentation is the same one I've been talking about on and off over the past year or two: moving Visual Basic back towards it's scripting roots. The main thrust of this presentation was the technical side of the story--namely, what we would need to do to the existing Visual Basic compiler to be able to effectively use it as a scripting engine. The presentation talks some about the way the compiler is structured, how it might change and some of the things were thinking about enabling. In particular, what we'd like to see is not just that Visual Basic can be embedded anywhere, but that all the services that the compiler provides--parsing, semantic analysis, code generation--are available to be used by any program that needs them. The DLR is a key part of this, but there's a lot of work on top of that.&lt;/p&gt; &lt;p&gt;I also showed some fun demos of some prototypes that we've whipped up using our current codebase. Nothing we're committing to at the moment, but it gives you some of the flavor of what we're thinking about.&lt;/p&gt; &lt;p&gt;One thing this presentation &lt;em&gt;didn't&lt;/em&gt; cover (and which Ted Neward brought up in the Q&amp;amp;A afterward) is what we might do to the language itself to make it more scripting-friendly. That's an area where things are less well-defined and even more speculative than what I talked about, so I left it out for now. Maybe soon I can talk more about it...&lt;/p&gt;&lt;img src ="http://www.panopticoncentral.net/aggbug/22883.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Paul Vick</dc:creator><title>The big &amp;quot;D&amp;quot;-word</title><link>http://www.panopticoncentral.net/archive/2007/10/16/22378.aspx</link><pubDate>Tue, 16 Oct 2007 14:58:00 GMT</pubDate><guid>http://www.panopticoncentral.net/archive/2007/10/16/22378.aspx</guid><category>VB10</category><category domain="http://www.microsoft.com/blogs">Visual Basic</category><wfw:comment>http://www.panopticoncentral.net/comments/22378.aspx</wfw:comment><comments>http://www.panopticoncentral.net/archive/2007/10/16/22378.aspx#Feedback</comments><slash:comments>18</slash:comments><wfw:commentRss>http://www.panopticoncentral.net/comments/commentRss/22378.aspx</wfw:commentRss><trackback:ping>http://www.panopticoncentral.net/services/trackbacks/22378.aspx</trackback:ping><description>&lt;p&gt;&lt;em&gt;WARNING: This is a &lt;a href="http://www.panopticoncentral.net/archive/2007/10/03/22266.aspx"&gt;speculative post&lt;/a&gt;. Caveat emptor.&lt;/em&gt;&lt;/p&gt; &lt;p&gt;I know that I'm running a great risk of touching the &lt;a href="http://en.wikipedia.org/wiki/Third_rail"&gt;third rail&lt;/a&gt; of the VB community by even &lt;em&gt;speculating&lt;/em&gt; about this, but it seems like the right time to have a bit of a conversation about the big "D"-word.&lt;/p&gt; &lt;p&gt;That is, deprecation.&lt;/p&gt; &lt;p&gt;Yes, deprecation. Now before anyone starts freaking out, foaming at the mouth or writing a &lt;a href="http://classicvb.org/"&gt;petition&lt;/a&gt;, let me emphasize that my thinking along these lines is entirely within the guidelines discussed in the &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=6D50D709-EAA4-44D7-8AF3-E14280403E6E&amp;amp;displaylang=en"&gt;language specification&lt;/a&gt;, which mandates a long and gradual process of deprecation that involves continuing to support the deprecated feature for a reasonable period of time. The guidelines also state in part:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;...feedback must be solicited from the user community on deprecation of the feature and full notice given before any final deprecation decision is made. The deprecation process may be reversed or abandoned at any point based on user community feedback.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;So I'm really just floating some personal trial balloons here. After all, it's now been almost three major releases since the big move to .NET, and I think it's started to become clear that some of the features we carried forward are a bit, uh, &lt;em&gt;underused&lt;/em&gt;. In the interest of paring down the language specification just a bit in it's inevitable march towards more and more pages, I've been pondering the question: "If I was going to deprecate parts of the language that don't seem to be used, what would I deprecate?" I've come up with a few candidates that &lt;em&gt;seem&lt;/em&gt; pretty safe:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;strong&gt;Type characters.&lt;/strong&gt; Yes, we still allow you to say "Dim a$". So far as I have ever seen, no one uses them anymore. It would be nice to reclaim a bunch of characters at some point in the future, and it would be relatively easy to include error corrections to fix this up.  &lt;li&gt;&lt;strong&gt;Copying of boxed value types.&lt;/strong&gt; I'm not even sure I could explain this in a bullet point. If you read section 8.6 of the language spec, Value Type Conversions, it'll discuss this a little more detail. I think this is counterintuitive behavior for most people and is incomplete in any case. The only real question here is: are there programs that depend on this behavior? We'd need to think/talk a lot more about it before we could even consider this one.  &lt;li&gt;&lt;strong&gt;Mid$() assignment.&lt;/strong&gt; Bet you didn't know you could even do this, did you? See section 10.6.3 in the language spec for more on this.  &lt;li&gt;&lt;strong&gt;End statement.&lt;/strong&gt; I'm curious if this one is still used by people, especially now that most frameworks like WinForms and WPF have Application objects that have a proper Exit/End method. If this one is popular, it might not fly as deprecatable.  &lt;li&gt;&lt;strong&gt;Erase statement.&lt;/strong&gt; I've found that ReDim is actually still fairly useful as a shorthand way to redimension an array. However, Erase is completely useless--you could just replace it with an assignment to Nothing and you'd get the same thing.  &lt;li&gt;&lt;strong&gt;REM comments.&lt;/strong&gt; Bet you didn't know you could even do this one either, did you? There's something nostalgic about it (Erik Meijer loves them), but, really, who uses them anymore?&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;You'll note that I'm only including things here that I think are truly not used much or not useful. There are things I think some people would &lt;em&gt;like&lt;/em&gt; to see disappear (like, say, On Error), but are still being used heavily enough to make them be not reasonable candidates.&lt;/p&gt; &lt;p&gt;I'm curious what's people's feelings about this are. Does this just bring up bad memories? Are there other candidates you'd throw on the list? As I said, at this point, I'm just talking. Depending on the reaction, the next step would be to look a little more formally at it in the team...&lt;/p&gt;&lt;img src ="http://www.panopticoncentral.net/aggbug/22378.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Paul Vick</dc:creator><title>What's on my mind for VB10 (and yours?)</title><link>http://www.panopticoncentral.net/archive/2007/10/05/22298.aspx</link><pubDate>Fri, 05 Oct 2007 16:38:00 GMT</pubDate><guid>http://www.panopticoncentral.net/archive/2007/10/05/22298.aspx</guid><category>VB10</category><category domain="http://www.microsoft.com/blogs">Visual Basic</category><wfw:comment>http://www.panopticoncentral.net/comments/22298.aspx</wfw:comment><comments>http://www.panopticoncentral.net/archive/2007/10/05/22298.aspx#Feedback</comments><slash:comments>55</slash:comments><wfw:commentRss>http://www.panopticoncentral.net/comments/commentRss/22298.aspx</wfw:commentRss><trackback:ping>http://www.panopticoncentral.net/services/trackbacks/22298.aspx</trackback:ping><description>&lt;p&gt;&lt;em&gt;WARNING: This is a &lt;a href="http://www.panopticoncentral.net/archive/2007/10/03/22266.aspx"&gt;speculative post&lt;/a&gt;. Caveat emptor.&lt;/em&gt;  &lt;p&gt;Last week, one of the VB MVPs asked on a private alias what our thinking was about VB10. As I kind of indicated in my &lt;a href="http://www.panopticoncentral.net/archive/2007/10/03/22266.aspx"&gt;previous entry&lt;/a&gt;, I don’t think we have a clear idea yet of what’s going to be on the table for the next rev—VB 2008 was kind of an aberration in that LINQ was in gestation long before VB 2005 even shipped. But I &lt;em&gt;can&lt;/em&gt; say what’s at least on my mind:  &lt;ul&gt; &lt;li&gt;Hosting or, more generally, opening up the compiler services to the outside world.  &lt;li&gt;Decreasing lexical “noise” when looking at VB code.  &lt;li&gt;Increasing the extensibility of the language so that it takes less work to extend the language and can be done by libraries (Ruby is an example of what I’m thinking of here, but only a &lt;em&gt;general&lt;/em&gt; example).  &lt;li&gt;Addressing UNDONE tasks from Orcas (object initializers, statement lambdas).  &lt;li&gt;Addressing persistent annoyances (line continuations is a good example here).  &lt;li&gt;Addressing whatever else comes up from the community as we release VB 2008.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;I know that I've already added the usual caveats above, but I want to make double clear this is just what’s on my mind at the moment—in other words, things that I’m personally thinking about. These are not official team priorities, planned for the next rev, or anything like that. The next version could look radically different than the list above. I should also add that I mostly think about the language, so that’s why this list doesn't talk about the IDE.  &lt;p&gt;I’d be interested (in keeping with the last bullet point) what people might be specifically in for the next release. What's at the top of your list these days?&lt;/p&gt;&lt;img src ="http://www.panopticoncentral.net/aggbug/22298.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Paul Vick</dc:creator><title>An update on VBx...</title><link>http://www.panopticoncentral.net/archive/2007/10/03/22266.aspx</link><pubDate>Wed, 03 Oct 2007 14:09:00 GMT</pubDate><guid>http://www.panopticoncentral.net/archive/2007/10/03/22266.aspx</guid><category>VB10</category><category domain="http://www.microsoft.com/blogs">Visual Basic</category><wfw:comment>http://www.panopticoncentral.net/comments/22266.aspx</wfw:comment><comments>http://www.panopticoncentral.net/archive/2007/10/03/22266.aspx#Feedback</comments><slash:comments>14</slash:comments><wfw:commentRss>http://www.panopticoncentral.net/comments/commentRss/22266.aspx</wfw:commentRss><trackback:ping>http://www.panopticoncentral.net/services/trackbacks/22266.aspx</trackback:ping><description>&lt;p&gt;Things have been pretty quiet around Panopticon Central since I did a bit of talking about &lt;a href="http://www.panopticoncentral.net/archive/2007/05/01/20383.aspx"&gt;"VBx"&lt;/a&gt; back in May. Partially this has reflected the fact that we're at a pretty early stage of thinking about the post-VS 2008 world, so there isn't a lot solid to talk about. Partially this has reflected the usual shifts in emphasis and strategy that occur around the end of a major product cycle as more and more people start to get freed up to think beyond what they're delivering next month. And partially this has reflected that I've got two kids at home now, and that just seems to suck up some of the extra time that I used to use for blogging... &lt;/p&gt; &lt;p&gt;That said, I think it's worth spending a moment catching up on what's going on with "VBx" (at least that I can talk about in public).&lt;/p&gt; &lt;p&gt;I think the first thing that's worth saying is that pretty much everyone seemed to dislike the codename "VBx," mostly because it overlaps too much with the old VBX controls and partially because it seemed to imply that we were developing another version of the language (which we &lt;a href="http://www.panopticoncentral.net/archive/2007/05/02/20395.aspx"&gt;aren't&lt;/a&gt;). Fair enough. For the moment, then, instead of talking about "VBx," I'm going to talk about "VB10". This isn't an official codename at all, just a personal shorthand way of referring to "the next major version of Visual Basic." Maybe it will be version 10, or maybe it won't, but I hope it will be a little less confusing than "VBx" was, in that it should emphasize the continued unity of the VB language.&lt;/p&gt; &lt;p&gt;Back in May, our goal was to have something to CTP in the PDC07 timeframe, which would have been this month. But that turned out to be a more aggressive timeframe than expected. However, even if we haven't got something solid to CTP just yet, we've still got some ideas of where we're headed and what you might expect to see in VB10. So over the next few months, my goal is to write some speculative pieces on what we are thinking. The purpose would not be to make feature commitments or say what's definitely in or out of the next version, but instead to get some of our ideas out there and see what people think, see whether there is any traction or not, and determine if we're crazy or not.&lt;/p&gt; &lt;p&gt;Each entry, though, would need to come with some pretty heavy caveats. To wit:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;WARNING! This is a speculative post. It reflects the individual thoughts of the author at a particular point in time. It does not necessarily reflect the future beliefs of the author, nor does it necessarily reflect the beliefs, current or future, of the team as a whole. No conclusions can or should be drawn from this article about future features, plans, or directions of the Visual Basic language. These features may show up in the product as some point, or they may not. If they do show up, they may not look or work as described here. Caveat emptor. No warranties expressed or implied. Your mileage may vary. Fnord.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;I hope this will give people a pretty accurate idea of how big a grain of salt to take them with...&lt;/p&gt;&lt;img src ="http://www.panopticoncentral.net/aggbug/22266.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Paul Vick</dc:creator><title>What does the PDC cancellation mean for VBx?</title><link>http://www.panopticoncentral.net/archive/2007/05/29/20756.aspx</link><pubDate>Tue, 29 May 2007 15:09:00 GMT</pubDate><guid>http://www.panopticoncentral.net/archive/2007/05/29/20756.aspx</guid><category>VB10</category><category domain="http://www.microsoft.com/blogs">Visual Basic</category><wfw:comment>http://www.panopticoncentral.net/comments/20756.aspx</wfw:comment><comments>http://www.panopticoncentral.net/archive/2007/05/29/20756.aspx#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.panopticoncentral.net/comments/commentRss/20756.aspx</wfw:commentRss><trackback:ping>http://www.panopticoncentral.net/services/trackbacks/20756.aspx</trackback:ping><description>&lt;p&gt;As many people know by now, Microsoft has decided to &lt;a href="http://msdn2.microsoft.com/en-us/events/bb288534.aspx"&gt;reschedule the PDC&lt;/a&gt; that was planned for later this year. This was very disappointing for me personally, since I was looking forward to seeing a bunch of the people that I usually see there and was one of the consolations I had for myself for not being able to go to MIX. It also means that our plan to &lt;a href="http://www.panopticoncentral.net/archive/2007/05/01/20383.aspx"&gt;talk more about VBx at the PDC&lt;/a&gt; is going to have to be shifted around. Not clear where/when our focus is going to move to, but stay tuned, we should have more information shortly...&lt;/p&gt;&lt;img src ="http://www.panopticoncentral.net/aggbug/20756.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Paul Vick</dc:creator><title>Javascript in VB...</title><link>http://www.panopticoncentral.net/archive/2007/05/24/20730.aspx</link><pubDate>Thu, 24 May 2007 13:24:00 GMT</pubDate><guid>http://www.panopticoncentral.net/archive/2007/05/24/20730.aspx</guid><category>VB10</category><category domain="http://www.microsoft.com/blogs">Visual Basic</category><wfw:comment>http://www.panopticoncentral.net/comments/20730.aspx</wfw:comment><comments>http://www.panopticoncentral.net/archive/2007/05/24/20730.aspx#Feedback</comments><slash:comments>20</slash:comments><wfw:commentRss>http://www.panopticoncentral.net/comments/commentRss/20730.aspx</wfw:commentRss><trackback:ping>http://www.panopticoncentral.net/services/trackbacks/20730.aspx</trackback:ping><description>&lt;p&gt;Yes, it's true, as Miguel &lt;a href="http://tirania.org/blog/archive/2007/May-23.html"&gt;found out at the compiler lab&lt;/a&gt;:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;Another interesting detail: the new Javascript compiler is written in Visual Basic.NET.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;The compiler he's talking about is the Silverlight-based Javascript compiler that we released in &lt;a href="http://silverlight.net/Default.aspx"&gt;Silverlight 1.1&lt;/a&gt;. Of course, we're also writing VBx in VB as well, so...&lt;/p&gt;&lt;img src ="http://www.panopticoncentral.net/aggbug/20730.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>