Comment

Comment by gzread

Not many people know this, but you can also write

    public int x, y;
instead of

    private int x, y;
    public int getX() {return x;}
    public void setX(int x) {this.x = x;}
    public int getY() {return y;}
    public void setY(int y) {this.y = y;}
this is compatible with any language version
parent gzread 8 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton