Re: [Haskell] Re: Use of tab characters in indentation-sensitive code

2004-01-26 Thread Jeff Dalton
> This just shows how deeply ingrained the ascii plain text mindset is > in the programming community. I don't expect anything like this to ever > fly, for this reason. You guys won't let it. :( (Sorry, but how did ascii get in there? Was the argument for Unicode or HTML?) As for mindset, the

RE: [Haskell] Re: Use of tab characters in indentation-sensitive code

2004-01-26 Thread Simon Marlow
> Wolfgang Thaller writes (to the Haskell mailing list): > > > IMHO, there should only be warnings about tabs when their > > size makes a difference to the meaning of the program, > > I agree and would suggest an even more stringent test to > warn against > > > a = let x = 1 > > y = 2

Re: [Haskell] Re: Use of tab characters in indentation-sensitive code

2004-01-26 Thread Wolfgang Jeltsch
Am Sonntag, 25. Januar 2004 23:42 schrieb Sebastian Sylvan: > Sean L. Palmer wrote: > > Besides, the idea would be not to use  , but rather some "indent > > paragraph" tag. > > This is kind-of a cool idea. If I ever take a course involving writing > my own language I'll be sure to incorporate this

RE: [Haskell] Re: Use of tab characters in indentation-sensitive code

2004-01-26 Thread Glynn Clements
Bayley, Alistair wrote: > {-# OPTIONS -tabsize 4 #-} > > I think it's still a bit of a hack, but at least the author tells you what > their tabsize was when they wrote it, so you can recover their layout. You > could always pre-process the source yourself with sed, if the compiler > doesn't unde

Re: [Haskell] Re: Use of tab characters in indentation-sensitive code

2004-01-26 Thread Andreas Rossberg
George Russell wrote: Graham Klyne wrote (according to Wolfgang Thaller, snipped): > I think that compilers should issue a warning when indentation that > determines the scope of a construct is found to contain tab characters. In an ideal world, TAB characters would never have been put into ASCII

[Haskell] Re: Use of tab characters in indentation-sensitive code

2004-01-26 Thread Ronny Wichers Schreur
Wolfgang Thaller writes (to the Haskell mailing list): IMHO, there should only be warnings about tabs when their size makes a difference to the meaning of the program, I agree and would suggest an even more stringent test to warn against a = let x = 1 y = 2 -- OK in ... because the (vi

[Haskell] Re: Use of tab characters in indentation-sensitive code

2004-01-26 Thread George Russell
Graham Klyne wrote (according to Wolfgang Thaller, snipped): > I think that compilers should issue a warning when indentation that > determines the scope of a construct is found to contain tab characters. In an ideal world, TAB characters would never have been put into ASCII, and this would be my p

RE: [Haskell] Re: Use of tab characters in indentation-sensitive code

2004-01-26 Thread Bayley, Alistair
-Original Message- > From: Ronan Klyne [mailto:[EMAIL PROTECTED] > Sent: 26 January 2004 03:53 > To: The Haskell Mailing List > Subject: [Haskell] Re: Use of tab characters in indentation-sensitive > code > > > I support the idea that somthing should be done. I

[Haskell] Re: Use of tab characters in indentation-sensitive code

2004-01-25 Thread Ronan Klyne
I support the idea that somthing should be done. I would like to suggest that the compiler references an environment variable to determine how many spaces a tab represents. I realise that this would cause the same code to run on some systems and fail on others, but it would allow a developer to

RE: [Haskell] Re: Use of tab characters in indentation-sensitive code

2004-01-25 Thread David Bergman
Sean wrote: > Joking aside, surely you intelligent people realize that the internals > of a file format have nothing whatsoever to do with the user interface > of the editing tool. Something like this would be completely > transparent *if* you used the right tools. But then you would be forc

RE: [Haskell] Re: Use of tab characters in indentation-sensitive code

2004-01-25 Thread David Bergman
Sebastian wrote: > Sean L. Palmer wrote: > > > Besides, the idea would be not to use  , but rather > some "indent > > paragraph" tag. > > This is kind-of a cool idea. If I ever take a course involving writing > my own language I'll be sure to incorporate this idea. This idea of an indent parag

[Haskell] Re: Use of tab characters in indentation-sensitive code

2004-01-25 Thread Ben Rudiak-Gould
On Sun, 25 Jan 2004, Sean L. Palmer wrote: > Joking aside, surely you intelligent people realize that the internals of a > file format have nothing whatsoever to do with the user interface of the > editing tool. Something like this would be completely transparent *if* you > used the right tools.

Re: [Haskell] Re: Use of tab characters in indentation-sensitive code

2004-01-25 Thread Sebastian Sylvan
Sean L. Palmer wrote: Besides, the idea would be not to use  , but rather some "indent paragraph" tag. This is kind-of a cool idea. If I ever take a course involving writing my own language I'll be sure to incorporate this idea. /S ___ Haskell mailin

[Haskell] Re: Use of tab characters in indentation-sensitive code

2004-01-25 Thread Sean L. Palmer
Joking aside, surely you intelligent people realize that the internals of a file format have nothing whatsoever to do with the user interface of the editing tool. Something like this would be completely transparent *if* you used the right tools. This just shows how deeply ingrained the ascii plai

[Haskell] Re: Use of tab characters in indentation-sensitive code

2004-01-25 Thread Ketil Malde
"Sean L. Palmer" <[EMAIL PROTECTED]> writes: > Why has HTML been out for many many years, and yet programming languages > still use plain ASCII text exclusively? Don't we have similar needs as > other electronic document manipulators? So we could write: foo bar = case bar of   Zot x -> ...