Page MenuHomePhabricator

Add tuple support to `PhutilTypeSpec`
Open, WishlistPublic

Description

It could be useful to add a tuple type to PhutilTypeSpec. Example usage:

  • tuple<string, int, SomeClass>
  • tuple<string, string> (or pair<string, string>
  • tuple<int>

Revisions and Commits

Event Timeline

joshuaspence claimed this task.
joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: libphutil.
joshuaspence added subscribers: joshuaspence, epriestley.

I think tuple<int> should accept singleton arrays (like array(1) -- but reject array(1, 1)), not be identical to list<int>. Seems good otherwise.

joshuaspence added a revision: Restricted Differential Revision.Sep 21 2014, 1:25 PM
joshuaspence triaged this task as Wishlist priority.Oct 12 2014, 8:09 PM

I haven't been able to make any progress on this.