DEV Community

Phantz
Phantz

Posted on

Wanna have fun with Lazy Iterators in good ol' C?

I made a demonstration + explanation of implementing a lazy iterator interface in pure C99. As well as implementing strong lazy abstractions with the iterators!

Check it out on github

Top comments (3)

Collapse
 
joelbonetr profile image
JoelBonetR πŸ₯‡ • Edited

Woah, long time without reading C code! πŸ˜†

C99 was the definition before C standard, isn't it? At first sight I guessed hat you missclicked the 9 for the + hahaha

Collapse
 
totally_chase profile image
Phantz

C99 was the second ISO revision actually. It's the one most people recommend using nowadays since C11 isn't too significant and C17 is just a bunch of defect fixes. C89 (ANSI C) was the first C standard. Followed by C90, which is the same as C89 but ISO took charge of the standard from then on, instead of ANSI.

Collapse
 
joelbonetr profile image
JoelBonetR πŸ₯‡

Good ol' times. I learned to code in JS as addition to html + css, then ASP Classic (back those days we call it ASP πŸ˜†) and then C, after that Java, PHP, C#, JS advanced level and so on.. my gosh, what a bunch of languages. I kinda like the power of C but also appreciate the ease to use of the languages on a higher level, I would need to re-study the things in C to avoid messing it up with mem assignments for sure hahaha