Comment

Comment by Zababa

About Java vs Python, modern Java would be:

    import java.util.ArrayList;
    var cars = new ArrayList<String>();
Python would be:

    cars: list[string] = []
The big difference seems to be that ArrayList is not a "default" data structure in Java, but it is in Python. While I like the Python example better, I'm not offended by the modern Java.
parent Zababa 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton