Re:C++ confessions of a C developer
by witty_username on Sunday December 04, 2016 @12:38PM
(#13100788)
Are generators really an advanced feature? I've used them pretty often (instead of returning a list) and they're pretty simple.
For many types of programmers that would be happy with something like C or Go, most likely yes, given that they already allow for some interesting patterns. Also because they changed a bit, in the early days you could not pass arguments back to them.
However, when I wrote generators I was actually thinking about comprehensions.
Re:C++ confessions of a C developer
by witty_username on Monday December 05, 2016 @01:46AM
(#13103793)
I think comprehensions are less advanced (they're a specialized case of iterators) and very commonly used.
> Also because they changed a bit, in the early days you could not pass arguments back to them.
Sending arguments is certainly advanced.
What about style guides to forbid people to use generators, metaclasses or other advanced features?
Just to pick a language most people think it is easier than C++.