Req25: With and From should be allowed together
[This post is part of a series, "wish-list for future versions of VB"]
IDEA: With and From should be allowed together. It's just a silly oversight that they're not. For example, we should allow this:
Dim x As New List(Of Integer) With {.Capacity = 10} From {1, 2, 3}
Provisional evaluation from VB team: It would be nice if we'd put this into the feature when we created it in the first place. But as for adding it now -- well, it seems like it wouldn't really add much value to many users. We think there are better ways to spend our development time.
Comments
- Anonymous
March 09, 2010
Yes, you may think that there are better thinks to work on then these. But not working on such small thinks makes language inconsistent. From time to time I reach thinks that works good when used separately but from some reason don't work when used togehter. - With + From
- Handles + Implements