Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!umcp-cs!nbs-amrf!libes From: libes@nbs-amrf.UUCP (Don Libes) Newsgroups: net.lang.c Subject: using indentation rather than braces Message-ID: <301@nbs-amrf.UUCP> Date: Wed, 14-May-86 13:47:28 EDT Article-I.D.: nbs-amrf.301 Posted: Wed May 14 13:47:28 1986 Date-Received: Fri, 16-May-86 06:35:56 EDT References: <501@brl-smoke.ARPA> <797@bentley.UUCP> <287@euclid.warwick.UUCP> Organization: National Bureau of Standards Lines: 24 > Couldn't you write a small(?) filter which would let you write C > without braces and fill them in for you from the indentation? It > doesn't seem too difficult. (No I'm not offering to do it). Someone here, upon being introduced to C, decided it was so ugly, that he wrote a filter called "uglify" which allowed him to write "beautiful code" which when translated by uglify looked like real C. One of the things uglify did was to take statements without the braces and fill them in from the indentation. It did a variety of other things that were cute. One of the things I remember is that you could put the args next to the formats in printf strings, rather than having to count up the number of %'s you had seen to tell which argument to look at. The guy obviously had no idea of separation between lexical scanning, parsing and functions. He just knew what he liked and didn't like. I refused to criticize him, because some of the best ideas are born that way. If you want "uglify", call Tom Kramer (301) 921-2461. I'm sure he doesn't read his mail. Don Libes {seismo,umcp-cs}!nbs-amrf!libes