gilfusion

Results 21 comments of gilfusion

Correct me if I'm wrong (only verified with a quick LINQPad check), but I think that the rule is that any unnamed parameters still need to be in order. For...

I was going to suggest a tuple-returning extension method on ```IEnumerable(Of T)``` as a workaround, then I remembered that we never got deconstruction (#278, #346) when they added tuples.

Expanding on my comment earlier, with what we have right now, we could use a function like this: ```vb.net Iterator Function Indexed(Of T)(source As IEnumerable(Of T)) As IEnumerable(Of (index As...

@rskar-git Indeed. If we could expand ```For Each```, I would want to support a lot more scenarios, like ```vb.net For Each {item1, item2} In {list1, list2} If item1 < item2...

@rskar-git With everyone speaking about confusion, I confused index with counter in the post you quoted, and of course, ```Enumerable.Range``` already gives us a collection (or an enumerable to be...

Just thinking through some of the running questions... (Warning, wall of text ahead.) # To ```:End Sub``` or Not VB already has special behavior for ```:``` in single-line ```If``` statements....

The reason I opened this issue in the first place is simply because every time I scroll through a class or module with a lot of one-liner methods (I tend...

I wonder if this could somehow play into writing single-line factory methods? ```vb Function CreateFoo(value As Integer) As New Foo(value) : End Function ``` It's a far cry from C#'s...

How bad would LINQ's ```.Cast(Of XmlSchemaElement)()``` or ```.OfType(Of XmlSchemaElement)()``` methods be in your situation?

@VBAndCs So, ultimately, your hope is that all those collections that enumerate on ```Object``` fade away. I can't argue with that. Still, is this ```vb.net Protected Function GetAlwaysVisibleItems() As IEnumerable(Of...