c3lang / c3c

Compiler for the C3 language
https://c3-lang.org
GNU Lesser General Public License v3.0
3.03k stars 183 forks source link

Remove requirements for pop_first, cause it already returns fault. #1578

Closed MohMaGen closed 1 month ago

MohMaGen commented 1 month ago

pop hasn't this requirements and works fine. But pop_first break in loops like this:

while (try current = queue.pop_first())
{
    // do smth.
}

So, I just remove this lines and everything works fine.

lerno commented 1 month ago

Quite right!