About Askemos · design notes · documentation · news · download · On CD · thanks · forum · support

SRFI49

SRFI 49 defines some "Python-like" whitespace sensitive syntax. For example straight from the proposal:

let
 group
  foo
   + 1 2
  bar
   + 3 4
 + foo bar

Denser equivalents using more traditional S-expressions:

let
 group
  foo (+ 1 2)
  bar (+ 3 4)
 + foo bar

Both those expressions above are equivalend to the standard Scheme syntax of:

(let ((foo (+ 1 2))
      (bar (+ 3 4)))
  (+ foo bar))

I strongly believe that such a syntax is much more useful, especially for Scheme beginners but even more for editing small code portion in textareas as one does often in Askemos/BALL.

Beware however:the srfi is not yet final and the discussion seems to have dried up. Future versions will implement the srfi-defined rules, i.e., if worst comes to worst and those change, your precious code will break. But that's kind of unlikely, especially if you use if for small code portions or the large structure and keep some emergency code in standard syntax only, which should be able to bootstrap you code upgrade process.

Beware of tabulators:please see the srfi discussion archive. Tabulators cause major headache. Currently they count as one space. Better don't use them at all, it might even be disabled until the srfi is finalised.





border
last modification: Thu, 17 Feb 2005 18:12:30 +0100
authors: jfw,
document identifier: A849640f672ed0df0958abc0712110f3c
delivered to public at Sat, 22 Nov 2008 10:03:35 +0100
short comments


rss

pdf :: context view

search



02 Mai 2006AskemosTopMenu
18 Nov 2008StorageAdaptor
18 Nov 2008PStoreStorageAdapt
18 Nov 2008OperationTips
15 Nov 2008PCRE
04 Nov 2008ProgrammingLanguag
01 Okt 2008SystemRequirements
09 Sep 2008RelatedProjects
23 Jul 2008ProjectsOnThePlate
23 Jul 2008ModuleStructure05
17 Jun 2008NEWS
17 Jun 2008HTML
17 Jun 2008ACM
22 Mai 2008HTTP
22 Mai 2008BOSH
10 Mai 2008AskemosBibliograph
10 Mai 2008JerrysDreamAbstrac
20 Apr 2008XSLT
11 Mar 2008CodingStyle
10 Mar 2008
09 Mar 2008MIMEConverter
BSD
07 Mar 2008XML
06 Mar 2008SRFI
01 Mar 2008RFC4810
01 Mar 2008RFC4998
01 Mar 2008KondratieffWerk
04 Jan 2008service-level
04 Jan 2008NameSpaceDSSSLinde
24 Jun 2004KommunikationsInfr
BOINC






Add


About Askemos · design notes · documentation · news · download · On CD · thanks · forum · support
Web Design by Schwill Dresden