Editor Tab Expansion

matt hellige matt@immute.net
Mon, 9 Dec 2002 18:33:22 -0600


[Glynn Clements <glynn.clements@virgin.net>]
> 
> Peter wrote:
> 
> > > Currently, I expand tabs to 4 spaces only, so
> > >
> > > \tx=bar
> > >
> > > looks like
> > >
> > > ____foo = bar
> > >
> > > to me when the compiler sees
> > >
> > > ________foo = bar
> > 
> > If you want to go the layout way perhaps someone/you could put in a compiler
> > option for tab expansion. Check in ghc/compiler/parser/Lex.lhs - it should
> > be a starting point. Perhaps I will do it if I get a chance.
> 
> That seems like a really bad idea to me. If someone writes code which
> relies upon this particular option, but it isn't given, there's a good
> chance that the code will be compiled incorrectly but without any
> warning.
> 

please see my previous suggestion: i believe the compiler should
refuse to do "tab expansion" at all...

m

-- 
matt hellige                  matt@immute.net
http://matt.immute.net