Skip to content

Merge SFT with Space #109

Open
Open
@qinsoon

Description

@qinsoon

trait SFT (Space Function Table) was created so that we can use it as trait objects, as at that time, Space<VM, PR> could not be used as trait objects. To solve this, SFT was introduced and some of functions in Space were moved to SFT.

#108 removed type parameters of Space<VM>, and makes it possible to merge what is in SFT back to Space. We should think about whether we should merge SFT back with Space.

Pros:

  • Less traits.
  • One Space trait, no confusion.

Cons:

  • As we plan to provide a more efficient mechanism to implement SFT (Per-Space "Dynamic Dispatch" #55), the merging will make it unclear what would be in space function table.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-spaceArea: Space/PageResourceC-refactoringCategory: RefactoringF-questionCall For Participation: Unanswered question (need more information)P-normalPriority: Normal.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions