My favorites | Sign in
Project Home Wiki Issues Source Code Search
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 11666: Remove Path class from the Dart SDK
8 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ajohnsen@google.com
Closed:  Aug 2013
Cc:  rnystrom@google.com


Sign in to add a comment
 
Reported by demis.be...@gmail.com, Jul 2, 2013
Introducing an interim Path type to manipulate string paths is an un-necessary friction given the dart:io File and Directory classes only work with strings. It's also a good show-case on how over-typing SDK API's are less re-usable, composable and overall harder to work with.

We should remove the Path type from the SDK given that better and redundant options (also made by the Dart Team) exist including pathos: http://pub.dartlang.org/packages/pathos

Ideally Dart SDK APIs should have a minimal and flexible API surface with special care taken when converting what is commonly else-where a string API behind types which as a side-effect can create friction and reduce interoperability. IOTW there should be a clear and visible benefit to typing string APIs in the SDK. When they exist they should be balanced against the ease-of-use and imposed friction compared with the existing node.js APIs:
http://nodejs.org/api/path.html

It's always an option for external higher-level libs to provide a typed API layer over it, that way their use is isolated to those who prefer and see value in it.
Jul 4, 2013
Project Member #2 ajohnsen@google.com
Path is now deprecated, will be removed at the 11th of August.

An email will be sent out later today or tomorrow with instructions.

Cheers,

- Anders
Status: Started
Owner: ajohnsen@google.com
Cc: rnystrom@google.com
Jul 4, 2013
#3 demis.be...@gmail.com
brilliant, thx.
Jul 4, 2013
Project Member #4 rnystrom@google.com
Cool! If there's any functionality in Path that you find pathos lacks, please don't hesitate to throw patches at me to get that moved over.
Jul 24, 2013
Project Member #5 sgjesse@google.com
(No comment was entered for this change.)
Labels: Milestone-M6
Aug 15, 2013
Project Member #6 sgjesse@google.com
The Path class was removed from dart:io in https://code.google.com/p/dart/source/detail?r=26181.
Status: Fixed
May 14, 2014
Project Member #7 kevmoo@google.com
(No comment was entered for this change.)
Labels: -Area-IO Area-Library library-io
Sign in to add a comment

Powered by Google Project Hosting