[BUG] Methods have linefeeds in squeakland updates (5765-5781)
Doug Way
dway at mailcan.com
Mon Mar 29 04:43:10 UTC 2004
On Mar 26, 2004, at 11:55 PM, Ned Konz wrote:
> Would anyone feel that not being able to safely encode LF characters
> in source
> string literals would be so painful that converting linefeeds when
> doing a
> file-in or accepting method source from editors would *not* be a good
> idea?
This was discussed recently and someone mentioned that one case in
which you might want to legitimately have LF characters in a method is
when writing a test related to LF characters.
However, I'd think that this is rare enough that it would be fine to
disallow LF characters in source string literals, and if someone really
needs them for something such as a test, they can do this sort of
thing:
'My text... ', (String with: Character lf), ' more text...'
- Doug
More information about the Squeak-dev
mailing list
|