[vwnc] Squeak-Extensions' #(begins|ends)With:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] Squeak-Extensions' #(begins|ends)With:

Boris Popov, DeepCove Labs (SNN)

Am I alone thinking these answers should be a bit more consistent?

 

'' beginsWith: '' true

'' endsWith: '' false

'abc' beginsWith: '' true

'abc' endsWith: '' false

 

Specifically, any string should end with an empty substring just like any string begins with an empty substring IMHO.

 

-Boris


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc