Sven Van Caekenberghe-2 wrote > I am guessing you are lazy and want to type as little as possible
You know me too well ;) Sven Van Caekenberghe-2 wrote > 'http://endpoint.service.com:9090/v1' asZnUrl > withPathSegments: '/foo/bar/resource.txt' asZnUrl pathSegments. I like this one the best for now, as I didn't want to break up the string, to make it easier to change. Sven Van Caekenberghe-2 wrote > > 'http://endpoint.service.com:9090/v1' asZnUrl > withPathSegments: #(foo bar 'resource.txt'). How about a double dispatch under the covers of withPathSegments:, which does the current behavior for OrderedCollection; and for String, do something like "self findTokens: '/'." and pass that as the argument to withPathSegments:? -- View this message in context: http://forum.world.st/ZnUrl-Add-multiple-segment-string-tp4672728p4672815.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
