₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,329,529 members, 8,441,084 topics. Date: Wednesday, 08 July 2026 at 01:33 AM

Toggle theme

Why Doesn't Compilers Input What We're Missing? - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingWhy Doesn't Compilers Input What We're Missing? (407 Views)

1 Reply (Go Down)

Why Doesn't Compilers Input What We're Missing? by whs1(op): 11:14pm On Apr 19, 2021
If compiler knows we're missing a ";" , why does it display an error message instead of adding the missing ";" ?
Re: Why Doesn't Compilers Input What We're Missing? by Sirkingsnado: 11:19pm On Apr 19, 2021
whs1:
If compiler knows we're missing a ";" , why does it display an error message instead of adding the missing ";" ?
missing
Re: Why Doesn't Compilers Input What We're Missing? by qtguru(m): 7:34am On Apr 20, 2021
whs1:
If compiler knows we're missing a ";" , why does it display an error message instead of adding the missing ";" ?
AST it was built to compile and translate to another source, modification sounds easy but I assume there's alot of code and you don't always want to assume, however some IDE have gotten so good that they have the ability to help with that, better at source code level than during compilation.
Re: Why Doesn't Compilers Input What We're Missing? by stanliwise(m): 11:57pm On Apr 20, 2021
whs1:
If compiler knows we're missing a ";" , why does it display an error message instead of adding the missing ";" ?
It is not so intelligent to do so. That may not be our intention. JS compiler does this though.
Python don’t need it.
But for those that did it they feel you should corrrect it yourself or avoid hidden bugs down the road the will lead to too much stress
Re: Why Doesn't Compilers Input What We're Missing? by Deicide: 6:59pm On Apr 21, 2021
If you know what's the function of ";" you wouldn't be asking this question.
1 Reply

I'm Disturbed, Is My Typing Input Being Tracked?I Need Serious Input From Experts On This Project.Check If Input Is Number Javascript234

Php PackageI Will Design Develop New Courier Website E-commerce Website Online Banking -Urgent Attention