logoalt Hacker News

verdagon • today at 12:20 PM • 4 replies • view on HN

Also, as I was writing this, a couple things occurred to me:

* We _could_ use the function parameter syntax `entities: &world.entities[]` instead of `entities in world.entities[]`.

* "Groups" aren't really central to understanding the idea, so Path Borrowing might be a better name than Group Borrowing.

Opinions welcome =)


Replies

falserum • today at 8:07 PM

A bit more fuel for the bikesheding aspect of this:

Subtree borrowing.

(Single ownership stemming from main is a tree of owners; each path specifies some subtree)

(Btw. I enjoyed reading it)

munchler • today at 1:50 PM

FWIW `foo in bar` implies iteration to me, not a path. In the .NET world, for example, `bar` would be a collection that we’re iterating through, assigning each element to `foo` in turn.

_old_dude_ • today at 4:57 PM

Assuming “groups” are mainly about grouped invalidation, I agree, Path Borrowing is the better name, since it describes the core idea rather than the implementation mechanism.

scotty79 • today at 4:06 PM

Love both.