Maybe this is a dumb question - and often I’m surprised when asking these, but 
why is there no way to “find after” a string.

I find it rather boring to try and parse a string, after a known marker - thus: 
(loc := aString findString: ‘marker’) > 0 ifTrue: [ loc := loc + ‘marker’ size 
].

Is there a better way? This whole pattern seems very old and clunky and not 
smalltalk like? 

Couldn’t we have: findAfter: aString ifAbsent: aBlock ?

Or is there a whole better pattern for string searching that I’m missing ?

Tim

Reply via email to