Extending FileList with CrLf
Bert Freudenberg
bert at isg.cs.uni-magdeburg.de
Wed Jul 23 22:53:47 UTC 2003
Am Mittwoch, 23.07.03 um 22:35 Uhr schrieb Tom Rushworth:
>
> Ok, so I'll chime in with my Cdn$0.02.
>
> There's an old design principle that goes something like:
>
> Be liberal in what you accept, strict in what you generate.
>
> If we chose to use that as a guide, then the best way to go would be
> to have the "all singing, all dancing, convert anything to a reasonable
> string of LFs" applied to reading files opened as text. That's the
> "liberal" part. For the strict part, on writing a text file we
> should generate either:
>
> a) the OS standard, or
> b) the Squeak standard.
>
> If we have liberal input, there is no point to (b), so my vote is for
> option (a).
>
> To sum up, I think liberal input and OS standard output as the default
> for text files makes sense. I you need something different, by all
> means include some switches and knobs to change it, but let this be
> the default, so users who just want to operate on text without
> worrying about how the lines are delimited can do so.
Very well put. I'm all for it.
-- Bert
More information about the Squeak-dev
mailing list
|