5 Aug 2003 23:27
Use of whitespace
I tend to be like using significant whitespace as long as I can use delimiters where I need to. What is your general opinion on the use of significant whitespace in a langauge. Two langauges that take somewhat different approches to this are haskell and python. haskell takes a layout based approach, basically everything at the same level of indentation is in the same block. I believe it also allows only spaces. It also allows for standard dilimiters where needed. Python uses indentation as well, though it allows both spaces and tabs to serve. ------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511 http://us.click.yahoo.com/sO0ANB/LIdGAA/ySSFAA/W4wwlB/TM ---------------------------------------------------------------------~-> To unsubscribe from this group, send an email to: pragmatic_lang-unsubscribe@... Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
. Then, the IDE could display
> > that in a lot of ways.
>
> When I first read this I almost blew chunks all over my screen, but it does make a
> wierd cond of sense.
> Once I got over my gut reaction to actually writing code in xml I realized that we
> still have a few problems.
>
> XML is way to verbose.
> XML is not very readable when most of the code is in tags.
>
> Can you imagine writting code in xml? I cant. I do understand your point about
> parasiblity. However, our language syntax must be pretty simple and regular to
> make the macro system work. With this in mind a parser will probably be simple to
> write. Also a parser will be included in the platform so tools could make use of
> that.
Well, if I remember correctly, then there are already plans to make the syntax of
Pragmatic extensible.
RSS Feed