Since
'abc' includesSubstring: ''.
"true"
'abc' indexOfSubCollection: ''.
"0"
and following basic principles, my first reaction would also be that
'abc' beginsWith: ''.
'abc' endsWith: ''.
should both be true.
On the other hand, this is really a degenerate case. You know the answer
upfront
Yes, that one I have come across several times - even without trying to port
anything, merely because
it is how beginsWith: should work (supporting the empty string).
I have no idea about the rationale though.
Best,
Kasper
> On 20 Apr 2022, at 14.07, Richard O'Keefe wrote:
>
> I've just tra
I've just tracked down a nasty little problem
porting some code to Pharo. As a result, I
have added to the comments in my own versions
of these methods.beginsWith: aSequence
"Answer true if aSequence is a prefix of the receiver.
This makes sense for all sequences.
There is
RenoirSt, a DSL enabling programmatic cascading style sheet generation for Pharo Smalltalk reached it's v7.1.0 version.
What's Changed
Fix method categorization by @mtabacman in https://github.com/ba-st/RenoirSt/pull/46
Add Pharo 10 support by @gcotelli in https://github.com/ba-st/RenoirSt/pull/48