• Lucian's VBlog

    Req15: GetType for instances, methods and properties

    • 5 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: GetType should work on instances. ' Currently we can get the System.Type of a named type Dim t As Type = GetType ( IEnumerable ( Of )) ' We'd also like to...
  • Lucian's VBlog

    Req14: Non-empty default partial methods

    • 4 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Allow a non-empty default partial method. (This suggestion from Bill McCarthy ). For instance, Partial Class C Partial Private Sub f( ByVal s As String ) Console...
  • Lucian's VBlog

    Req13: Catches in Using blocks

    • 10 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Allow Catch statements in Using blocks. A Using block is just a Try/Finally block that calls "Dispose" in its destructor. It'd be handy if you could stick "Catch" statements...
  • Lucian's VBlog

    Req12: Select Case on object identity and type

    • 10 Comments
    [This post is part of a series, " wish-list for future versions of VB "] VB already has a powerful "Select Cast" statement, e.g. Select Case x Case Is = 1 Console .WriteLine( "x is equal to 1" ) Case Is > 7 Console .WriteLine(...
  • Lucian's VBlog

    Req11: International date literals

    • 10 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Allow date literals in a subset of ISO8601 format , e.g. #2010-01-26# or #2010-01-26T21:16Z#. (Currently VB only allows the US-specific form #MM/dd/yyyy#). Pretty-listing...
  • Lucian's VBlog

    Req10: share variables in method bodies

    • 6 Comments
    [This post is part of a series, " wish-list for future versions of VB "] VB's "static variables" are a powerful and useful time-saver. They declare a variable with a one-off initialization which is shared amongst all invocations of a instance's...
  • Lucian's VBlog

    Req9: allow CObj in constants and attributes

    • 2 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Allow a CObj in constants and attributes. Currently it's not allowed, for instance, to write Const x As Object = CObj("hello") or to pass CObj(1) into an attribute, Both...
  • Lucian's VBlog

    Req8: Use [ ] for arrays

    • 6 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Use [ ] for arrays. This suggestion came from Bill McCarthy. He writes that it's hard to tell the difference between array-indexing and other uses of parentheses. We...
  • Lucian's VBlog

    Req7: Have separate syntax for assignment "=" and comparison "=="

    • 10 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Have different syntax for assignment "=" or ":=", versus comparison "==". Currently "=" is used for both. Bill McCarthy writes, "To determine which one it means, you...
  • Lucian's VBlog

    Req6: Better casting

    • 4 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Casts should flow from left to right. Here are some candidate syntaxes: Dim x1 = ( HtmlPage .Document.GetElementsByTagName( "a" ).First As HtmlElement ).Children...
  • Lucian's VBlog

    Req5: unsafe and pointer support

    • 4 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: "unsafe" and pointer support. VB should support unsafe programming, like C#, with pointers and all that. SCENARIO: Pointer support is useful for people who write marshallers...
  • Lucian's VBlog

    Req3: multiline strings

    • 7 Comments
    [This post is part of a series, " wish-list for future versions of VB ". Just to note, I've been reading everyone's comments -- thank you everyone for the feedback -- but I want to finish putting up the entire list before I get round to responding.] ...
  • Lucian's VBlog

    Req2: null-propagating field access

    • 7 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Introduce a syntax for null-propagating field access. We could use the syntax ".?" for this. For instance, ' What the user writes Dim name = Customer .? Name ...
  • Lucian's VBlog

    Req1: Put the loop control variable inside the loop

    • 4 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: In a "For Each" loop, put the loop control variable's scope inside the loop. Look at the following code: Dim lambdas(10) As Func ( Of Integer , Integer ) For x...
  • Lucian's VBlog

    Core11: an "XML pattern" to break free from XDocument/XElement

    • 4 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: An "XML pattern". Currently we have a "collection pattern" so that For Each and "New From {...}" can be used on arbitrary user-defined types. And we also have a "query...
  • Lucian's VBlog

    Power11: Extension properties

    • 3 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Extension properties. We should add extension properties, just like we have extension methods. SCENARIO: In Javascript and a host of web-related DSLs, there are...
  • Lucian's VBlog

    Power10: Reduce verbosity through #light

    • 9 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Add a #light directive, like F#, to reduce VB's verbosity . We already eliminated the dreaded "_" to make VB syntax look cleaner. We could also use layout as in Python...
  • Lucian's VBlog

    Power7: Dictionary and list literals

    • 3 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Dictionary literals. You should be able to write a dictionary initializer with an easier syntax. Moreover, if the user didn't specify the type of the dictionary, then...
  • Lucian's VBlog

    Power6: __CALLER_MEMBER__

    • 2 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Reflect on your caller with __CALLER_MEMBER__ . Introduce three new "optional parameter defaults" which are called __CALLER_FILE__, __CALLER_LINE__ and __CALLER_MEMBER__...
  • Lucian's VBlog

    Power5: Custom anonymous types

    • 2 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Custom anonymous types. We should allow the user to provide a custom "anonymous type" template. This idea came from Bill McCarthy , who gave two examples: Dim customer...
  • Lucian's VBlog

    Power3: Shared methods inside interfaces

    • 2 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Allow shared methods inside interfaces, including operators. To support this we’d also need changes inside the CLR. SCENARIO: You want to write a general-purpose mathematical...
  • Lucian's VBlog

    Power4: Custom property templates and custom event templates

    • 5 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Custom property templates. We should have an easy way for users to write boiler-plate code in their properties. This would include things like INotifyPropertyChanged...
  • Lucian's VBlog

    Power2: Async and Resumable methods

    • 4 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Async and Resumable Methods. We should be able to use the "Async Programming Model" (APM) more easily, via an extra keyword "Async": Async Function Test() As Integer...
  • Lucian's VBlog

    Power1: REPL, and VBScript.NET

    • 1 Comments
    [This post is part of a series, " wish-list for future versions of VB "] [The first set of ideas I called "Core Ideas" because they fill in missing parts VB's current code feature set. This next set I call "Power Ideas" because they open up new ways...
  • Lucian's VBlog

    Core9: readonly auto-properties

    • 5 Comments
    [This post is part of a series, " wish-list for future versions of VB "] IDEA: Readonly auto-properties. We should allow read-only properties, which are backed by readonly fields, and can be set by either a property-initializer or through the existing...
Page 4 of 5 (123 items) 12345