May 31, 2019
9:24 p.m.
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