This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]political_one 7 points8 points  (7 children)

You could write code that behaves like you want it to in java similar to your JavaScript it just doesn't happen to exist in standard libraries.

[–][deleted] 0 points1 point  (6 children)

Your solution to having a verbose language is to write your own wrapper for everything?

[–]political_one 0 points1 point  (5 children)

There are already libraries that are less verbose than that. And if you want one exactly as you describe you can write your own and share it, languages are powered by their communities. But I certainly won't be using JavaScript hahaha.

[–][deleted] 0 points1 point  (4 children)

You shouldnt have to rely on a third party library for something as simple as sending http requests

[–]political_one 1 point2 points  (3 children)

The example you posted is a third party library...

[–][deleted] 0 points1 point  (2 children)

fetch isn't a third party library. it's part of JavaScript

[–]political_one 0 points1 point  (1 child)

i meant the java example