in reply to Basic syntax problem

Most non-Windows editors have a facility for checking brace-balance. In vi, it's %. Use it.

Another suggestion would be that you never type {, (, or [ without immediately typing the matching }, ), or ]. I do this and almost never have brace-balancing issues.

------
We are the carpenters and bricklayers of the Information Age.

The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: Basic syntax problem
by BrowserUk (Patriarch) on Sep 05, 2003 at 13:53 UTC

    Funnily enough, most window editors also have that facility...it ^M in mine. I realise that Notepad doesn't, but then neither does ed. They are of about equivalent functionality and use.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
    If I understand your problem, I can solve it! Of course, the same can be said for you.