From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a92e43963a6b930f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail From: BrianG Newsgroups: comp.lang.ada Subject: Re: N best things about Ada? Date: Tue, 13 Jul 2010 21:12:24 -0400 Organization: A noiseless patient Spider Message-ID: References: <97691fd2-7411-4ccc-bc7b-290aca633cd5@z30g2000prg.googlegroups.com> <4C3CB90E.70602@obry.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 14 Jul 2010 01:09:01 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="vvBPJT09arwmd97Fw4UIhw"; logging-data="17316"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18TMyvJdBlvcLDbSbmmBxc2" User-Agent: Thunderbird 2.0.0.24 (X11/20100317) In-Reply-To: Cancel-Lock: sha1:+ziO3KYHk4AaGYhCL3Xcoo1U/g4= Xref: g2news1.google.com comp.lang.ada:12405 Date: 2010-07-13T21:12:24-04:00 List-Id: Nasser M. Abbasi wrote: > On 7/13/2010 12:05 PM, Pascal Obry wrote: > >> >> 6. Great readability (e.g., begin/end instead of curly braces) >> > > fyi, the new kid on the block (F#) has done away all together of the > curly braces and begin. Like Python as well. > > These languages use space indentation as part of the logic of the > program. The idea is that less "clutter" improves readability. > > From MS web site om F# > > "The lightweight syntax is shorter and uses indentation to signal the > beginning and end of constructs, rather than additional keywords like > begin, end, in, and so on" > > From Python web site: > > "Python functions have no explicit begin or end, and no curly braces to > mark where the function code starts and stops." > > I am still not sure which is better. Using an explicit BEGIN END or > space indentation. > > --Nasser I've always wondered - what would these languages do with a program the has a mix of space-for-indent and tab-for-indent? Assuming that can even happen. I'm constantly running into these, because of different people editing using different editors. Usually it's someone else's, where they didn't notice that the published final code looks terrible (obviously not in Python). Is F# a version of Fortran for .Net? :-) (Like A#.) Or is it Forth?