Sign in
Lucian's VBlog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
async
COM
covariance
iterators
mvvm
phone
plugin
PostVB10
spec
talk
tools
web
win8
Archive
Archives
February 2013
(3)
December 2012
(3)
November 2012
(6)
July 2012
(1)
May 2012
(1)
April 2012
(1)
March 2012
(3)
November 2011
(1)
October 2011
(1)
May 2011
(4)
April 2011
(6)
October 2010
(2)
June 2010
(1)
April 2010
(2)
March 2010
(7)
February 2010
(29)
January 2010
(12)
November 2009
(2)
August 2009
(1)
February 2009
(1)
December 2008
(1)
November 2008
(3)
October 2008
(4)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Lucian's VBlog
Req21: Allow unambiguous types from ambiguous namespaces
Posted
over 3 years ago
by
Lucian Wischik, MSFT
3
Comments
[This post is part of a series, " wish-list for future versions of VB "] IDEA: Allow unambiguous types from ambiguous namespaces. This request arises from VB's powerful "import" feature, which is more flexible than that of C#, but which introduces...
Lucian's VBlog
Req12: Select Case on object identity and type
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Req20: Range expressions
Posted
over 3 years ago
by
Lucian Wischik, MSFT
8
Comments
[This post is part of a series, " wish-list for future versions of VB "] IDEA 1: Allow range expressions as a literal for IEnumerable. For instance, ' This expression Dim x = 5 To 14 ' should be syntactic sugar for this one Dim x...
Lucian's VBlog
Req7: Have separate syntax for assignment "=" and comparison "=="
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Req17: Define extension methods in an "extension class" of the extended type
Posted
over 3 years ago
by
Lucian Wischik, MSFT
5
Comments
[This post is part of a series, " wish-list for future versions of VB "] IDEA: Allow extension methods to be defined in their "extension class". It would look like this: Dim x = "hello" x.LogToDisk() ' extension method defined on strings ...
Lucian's VBlog
Req15: GetType for instances, methods and properties
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Req1: Put the loop control variable inside the loop
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Req8: Use [ ] for arrays
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Core11: an "XML pattern" to break free from XDocument/XElement
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Req16: Modules that don't auto-import their contents; extension methods in classes.
Posted
over 3 years ago
by
Lucian Wischik, MSFT
8
Comments
[This post is part of a series, " wish-list for future versions of VB "] IDEA 1: Shared Classes. We should allow "Shared Classes". Their members are all implicitly shared (like a Module), they can't be instantiated (like a Module), but their contents...
Lucian's VBlog
Req13: Catches in Using blocks
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Power6: __CALLER_MEMBER__
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Req11: International date literals
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Req19: Allow statements to start with parentheses
Posted
over 3 years ago
by
Lucian Wischik, MSFT
3
Comments
[This post is part of a series, " wish-list for future versions of VB "] IDEA: Allow statements to start with parentheses. Currently, every statement in VB must start with either an identifier or a keyword. We should allow statements to start with...
Lucian's VBlog
Req9: allow CObj in constants and attributes
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Req5: unsafe and pointer support
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Power11: Extension properties
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Req3: multiline strings
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Req10: share variables in method bodies
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Power4: Custom property templates and custom event templates
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Power10: Reduce verbosity through #light
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Req14: Non-empty default partial methods
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Req2: null-propagating field access
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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
Power2: Async and Resumable methods
Posted
over 3 years ago
by
Lucian Wischik, MSFT
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...
Page 1 of 2 (29 items)
1
2