Permalink
Browse files

minor cleanups

  • Loading branch information...
1 parent bb657ae commit f07294644ac4fc4fab5850b27e9544ca94b4a2d5 @cgay committed Mar 14, 2012
Showing with 10 additions and 7 deletions.
  1. +10 −7 library.dylan
View
@@ -1,5 +1,5 @@
Module: dylan-user
-Synopsis: String manipulation functions
+Synopsis: Basic string manipulation library
Author: Carl Gay
Copyright: This code is in the public domain.
@@ -10,8 +10,6 @@ define library strings
import: { dylan-extensions };
use io,
import: { streams, format-out };
- use string-extensions,
- import: { string-hacking };
use regular-expressions;
export strings;
@@ -20,7 +18,14 @@ end;
// Interface module
//
define module strings
- use common-dylan, import: { split };
+ use common-dylan,
+ // There's some sentiment that join isn't useful enough for
+ // generalized sequences that it should be in common-dylan, plus
+ // it seems natural for split and join (and split-lines) to be
+ // available in the same place. We might eventually remove
+ // join from common-dylan and have this be its real home.
+ import: { split, join },
+ export: { split, join };
// Possible addtions...
// translate
@@ -94,9 +99,7 @@ define module strings
// Miscellaneous
create
interpolate,
- //split,
split-lines,
- join,
whitespace?;
/* Should have all these basic conversion functions in common-dylan
@@ -111,7 +114,6 @@ end module strings;
// Implementation module
//
define module %strings
- use strings; // Use API module
use common-dylan;
use format-out;
use dylan-extensions,
@@ -124,5 +126,6 @@ define module %strings
// case-insensitive-string-hash
<format-string-condition>
};
+ use strings; // Use API module
end module %strings;

0 comments on commit f072946

Please sign in to comment.