25

The day I had to Translate this javascript:

fetch(url).then(r => r.json()).then(r => r.data)

To visual basic

Comments
  • 6
    Let me guess, 1 line of js code = 25 lines of vb code
  • 1
    Hahaha
  • 0
  • 1
    @Jonnyforgotten yes, around there :(
  • 2
    I can think of how it can be solved in 4 lines, maybe 3. Vb.net has LINQ and many other features that would let you program in such style.
  • 1
    @AleCx04 if you show me exactly how you would, that would be awesome

    I know you can write nice code like this using linq, and that is great. But how you make a simple request was just designed to be used imperatively, and so, cannot be solved using linq/lambdas
Add Comment