Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,193,242 members, 7,950,318 topics. Date: Monday, 16 September 2024 at 12:04 PM

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

Nairaland Forum / Science/Technology / Programming / Why Doesn't Compilers Input What We're Missing? (273 Views)

Politicians, Investors Etc - We're Building A Tech Learning Facility / Check If Input Is Number Javascript / Advice Welcomed - We're Putting A Team Of Devops Pro (2) (3) (4)

(1) (Reply) (Go Down)

Why Doesn't Compilers Input What We're Missing? by whs1: 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)

How Many Java Programmers Do We Have In Nigeria / Uk And Usa Free Assisted Shopping Service 2021 / App Developer

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.