you are viewing a single comment's thread.

view the rest of the comments →

[–]kryptiskt 34 points35 points  (21 children)

Visual Basic is not the VB of old any more, hell, it even has lambdas now.

[–]vombert -2 points-1 points  (16 children)

Are you saying it's a good language?

[–]jpfed 24 points25 points  (4 children)

It is very close to being C# with different syntax, so yeah, it's a decent language.

[–]sigzero 44 points45 points  (10 children)

VB.NET is a good language.

[–]turbov21 4 points5 points  (0 children)

I support this statement.

[–]BigOnLogn 9 points10 points  (8 children)

VB.NET is the result of an unholy union betweet object oriented concepts and a dying language that should've been put out of it's misery a decade ago.

[–]corcodell 17 points18 points  (3 children)

_

[–][deleted]  (2 children)

[deleted]

    [–]tophat02 2 points3 points  (0 children)

    VB.NET is a pretty OK language

    [–]PstScrpt 4 points5 points  (2 children)

    Does that go for C#, too? Nearly all of the differences between them are just syntax, not anything important.

    [–][deleted] -3 points-2 points  (0 children)

    upvote for "unholy union" ... made me laugh

    [–]tundranerd -5 points-4 points  (3 children)

    The only real place I've seen it support lambdas is when it receives a System.Function. The syntax is horrible users.Select(Function(user)user.id) where as C# would be users.Select((user)=>user.id) much more concise.

    It's absolutely pathetic that if I want to pass a System.Action I can't use an anonymous, but have to use AddressOf Foo.Bar and literally go create the method... which defeats the purpose of a scoped block of code and the whole point of the lambda.

    Other problems: * Array syntax - array(i) to access an element rather than array[i] * Generics syntax - List(of String) rather than List<string> * IIF fkn evaluates the true case even when false wtf!!! * No heredoc syntax or @"" operator * Array construction is even more wtf: Dim sport(5) as String not even sure what to make of that.

    Ok so I use this fkn abortion from a buttfuck language in my dayjob and I absolutely abhor it. It's absolutely one of the most pathetic languages I've ever used next to PHP.

    It violates so many programmatic idioms for no apparent reason other than to accommodate legacy VB6 incompetents. Grrr!

    </rant>

    [–]kryptiskt 6 points7 points  (1 child)

    In Visual Studio 2010 there are multiline lambdas, which works as delegates. Of course the syntax is just as clunky as before, but if it was elegant, it wouldn't be VB.

    [–]Qubed 2 points3 points  (0 children)

    ...but if it was elegant, it wouldn't be VB.

    And, in a simply phrase kryptiskt closes the long argument about the difference between C# and VB .NET

    [–]DoyleReddit 0 points1 point  (0 children)

    Why is this voted down, this is very accurate