kilon.alios wrote > oh Sean this so beautiful and elegant > class := self subclasses detect: [ :c | c pythonClassName = > pythonClassName
Yes I like/use this pattern a lot! I think I learned it from "A Mentoring Course on Smalltalk" ----- Cheers, Sean -- View this message in context: http://forum.world.st/Dealing-with-multiple-cases-of-a-string-while-keeping-code-short-and-OOP-friendly-tp4810731p4810790.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.