>>110161529
Indeed, and regular JS has type hint support through JSDoc, Python has optional typing support, PHP has optional typing support, Common Lisp has optional typing support. This suggests that dynamic typing "won", but people do want some of the benefits of static types, sometimes, and it's easy to get them. Even the other way around, people want something closer to dynamic types most of the time.
What language is this?
var jsonPayload = """
{
"name": "Jane Doe",
"email": "jane.doe@example.com"
}
""";
var request = HttpRequest.newBuilder()
.uri(URI.create("https://example.com"))
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(jsonPayload))
.build();
httpClient.sendAsync(request, HttpResponse.BodyHandlers.ofString())
.thenApply(HttpResponse::body)
.thenAccept(response -> {
formatResponse(response);
})
.join();
(Answer: Java.)