Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Python 3.5 to Ship with Matrix Multiplication Operator. Parent comment
`[]` is for discrete elements. That's perfect for a tile game.
My idea with `@` is a sort of collision detection for continuous maps. `map @ (115.2, 23.5)` should return the object under that position.
This operation is useful on all sorts of interactions: "can I move there?", "what did the mouse click?", "do I have a line of sight?", etc.
I'm still thinking on how to chain those operations.
There are no comments on this comment yet.
`[]` is for discrete elements. That's perfect for a tile game.
My idea with `@` is a sort of collision detection for continuous maps. `map @ (115.2, 23.5)` should return the object under that position.
This operation is useful on all sorts of interactions: "can I move there?", "what did the mouse click?", "do I have a line of sight?", etc.
I'm still thinking on how to chain those operations.