Comment

Comment by hcarvalhoalves

> val player = new Player(new Vector2(100, 100), new Vector2(50, 50))

> No problems here. The first noticible crack in the system comes after a few weeks vacation away from this code. You come back, and you want to change the starting point of the player. Will you remember which Vector2 to change?

    player = Player(position=Vector2(100, 100), size=Vector2(50, 50))
The problem is not typing here, it's lack of named arguments.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton