[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems with some 'End' marks
[Thread Prev] | [Thread Next]
- Subject: Re: problems with some 'End' marks
- From: Fabien Bodard <gambas.fr@xxxxxxxxx>
- Date: Sat, 29 Mar 2025 15:10:21 +0100
- To: Gambas Mailing List <user@xxxxxxxxxxxxxxxxxxxxxx>
Le sam. 29 mars 2025 à 05:09, Benoît Minisini < benoit.minisini@xxxxxxxxxxxxxxxx> a écrit : > Le 29/03/2025 à 03:05, BB a écrit : > > WHY WAS THIS DONE! > > > > Are we turning into python now? > > > > Whitespace has hitherto meant nothing. > > > > unhappy as I occassionally want to indent whole methods to make them > > stand out in the editor/printout.🙁 > > > > b > > > > I done that to prevent an annoying mistake: if someone writes "End" > instead of "End If" by mistake, the compiler emits errors hard to > understand. > > It took me a lot of minutes to find the problem in a small function > written by someone else. > > As "End" alone is only a keyword used for closing functions, and as > functions cannot be nested, I chose to raise an error if the compiler > sees "End" not at the beginning of the line. > > I couldn't imagine that someone will indent a whole function for any > reason! > > Maybe I can replace that error by a warning? Or better take the entire > indent into account and detect indent mismatch (beginning and end of > function not with the same indent)? > Or create a new syntax... As you told us a long time before. -- > Benoît Minisini. > > >
Re: problems with some 'End' marks | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
problems with some 'End' marks | Charlie Reinl <Karl.Reinl@xxxxxxxxxx> |
Re: problems with some 'End' marks | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: problems with some 'End' marks | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: problems with some 'End' marks | BB <adamnt42@xxxxxxxxx> |
Re: problems with some 'End' marks | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |