Skip to content

lastConnectionInRow inconsistent with lastConnectionInStack #3656

@BeksOmega

Description

@BeksOmega

Describe the bug

lastConnectionInStack lives on the block, while lastConnectionInRow lives on the connection.

Expected behavior

Connection manipulation functions should be stored together. This makes them easier to use. And it makes it less likely that they will be accidentally duplicated.

Additional context

Both of these functions are package, so they can be safely moved.

In addition to the two above location options (connection or block) I would like to raise the option of moving these functions into their own "connection manipulation" file, as they don't access any private state. (lastConnectionInRow isn't even on the prototype)

Todo link

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions