Askemos 2000 (Archive)
home · features · download · archive
test

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: Adc5dd0c30f6e63932811ed60e019bb2d,
document identifier: A849640f672ed0df0958abc0712110f3c
delivered to Af4aad764b0fb48d49089dbe7880b1a03 at Sun, 05 Feb 2012 06:13:19 +0100
short comments


rss

pdf :: context view

search



24 Apr 2004 DefineInsecureMode
12 Dez 2010 FreeBSD
07 Dez 2010 BALLFeatures
05 Dez 2010 ByzantineAgreement
04 Dez 2010 SQLITE
03 Dez 2010 SRS
12 Okt 2010 WebDAV
12 Sep 2010 SQL
16 Jun 2010 BALL
16 Jun 2010 CouchDB
16 Jun 2010 AskemosServer
07 Mai 2010 SystemRequirements
30 Mar 2010 ProjectsOnThePlate
30 Mar 2010 AskemosResources
30 Mar 2010 RSchemeInstall
30 Mar 2010 INSTALL
30 Mar 2010 ChickenScheme
debug-access.scm
27 Nov 2009 subscriber
development
12 Jul 2009 test
01 Jul 2009 TrustCenter
27 Dez 2008 JKomG
26 Dez 2008 FanOut
26 Dez 2008 MIME
NetBSD
NOTE
02 Mai 2006 AskemosTopMenu
18 Nov 2008 StorageAdaptor
18 Nov 2008 PStoreStorageAdapt
18 Nov 2008 OperationTips
15 Nov 2008 PCRE
04 Nov 2008 ProgrammingLanguag
09 Sep 2008 RelatedProjects
23 Jul 2008 ModuleStructure05
17 Jun 2008 NEWS
17 Jun 2008 HTML
17 Jun 2008 ACM
22 Mai 2008 HTTP
22 Mai 2008 BOSH
10 Mai 2008 AskemosBibliograph
10 Mai 2008 JerrysDreamAbstrac
20 Apr 2008 XSLT
11 Mar 2008 CodingStyle
10 Mar 2008
09 Mar 2008 MIMEConverter
BSD
07 Mar 2008 XML
06 Mar 2008 SRFI
01 Mar 2008 RFC4810
01 Mar 2008 RFC4998






Add


home · features · download · archive