Readable S-expressions and Sweet-expressions: Getting the Infix Fix and Fewer Parentheses in Lisp-like Languages
Edit Page
Report
Scan day: 07 February 2014 UTC
23
Virus safety - good
Description: Proposal to replace pure S-expressions with more flexible mixed alternative. David A. Wheeler's Weblog.
Readable s-expressions and sweet-expressions: Getting the infix fix and fewer parentheses in Lisp-like languages Lisp-based programming languages normally represent programs as , where an operation and its parameters are surrounded by parentheses. The operation to be performed is identified first, and each parameter afterwards is separated by whitespace. So the traditional “2+3†is written as “(+ 2 3)†instead. This is regular, but most people find this hard to read. Here’s a longer example of an s-expression - notice the many parentheses and the lack of infix operations:
Size: 590 chars
Contact Information
Email: —
Phone&Fax: —
Address: —
Extended: —
WEBSITE Info
Page title: | David A. Wheeler's Blog |
Keywords: | |
Description: | |
IP-address: | 208.86.184.80 |
WHOIS Info
NS | Name Server: NS63.WORLDNIC.COM Name Server: NS64.WORLDNIC.COM |
WHOIS | Status: clientTransferProhibited |
Date | Creation Date: 13-sep-1999 Expiration Date: 13-sep-2015 |