4 ms·
I find it interesting that languages, which copied the generator concept from icon, have not gone the full process and copied the success/fail concepts as well.
by oldandtired 9y ago
I find it interesting that languages, which copied the generator concept from icon, have not gone the full process and copied the success/fail concepts as well.
The two concepts (as well as co-expressions) go so well together and make many of the aspects of code writing simpler and easier to both read and write.
I use unicon as my go to language today. Even though it misses some language features that I would like to see incorporated, it handles my day to day programming needs. Since unicon is built upon icon, I can say that I have been using icon since 1986.
In the case of Python,I find the incorporation of generators a klunky addition to the language. It's nice to have but they didn't go far enough. But then again, I do suppose it would have changed the entire nature of Python to have incorporated success/failure into the language in the manner of icon/unicon.