Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
D
dune-typetree
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 5
    • Merge Requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • staging
  • dune-typetree
  • Issues
  • #10

Closed
Open
Created Feb 25, 2020 by Carsten Gräser@carsten.graeserOwner

Get rid of TreePath

There still exists the TreePath template for encoding a fully static path. Conceptually this was superseded by HybridTreePath since HybridTreePath<index_constant<i>...> can serve the same purpose as TreePath<i...>. Hence I think it's a good idea to get rid of TreePath. Also TreePath itself is no longer used in dune-typetree. But there's two main obstacles:

  • You cannot use HybridTreePath<index_constant<i>...> because a lot of the utility functions for TreePath are not implemented for HybridTreePath. This is mostly because the intended use is different: HybridTreePath is intended to by used as value, while those utilities act on types only.
  • Dune-pdelab still uses TreePath in many places.

In principle I solved both locally:

  • Implement (in dune-typetree) the missing utilities to make HybridTreePath<index_constant<i>...> a drop in replacement for TreePath<i...>.
  • Replace (in dune-pdelab) all uses of TreePath by the corresponding HybridTreePath

Is there interest (from pdelab) in this change? In the long run I think that many of the above mentioned utilities can/should be dropped if pdelab switches to a more value based handling of treepaths.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None