The comments about Z on hackernews linked to another indentation-based lisp:
http://code.google.com/p/genyris/

"""
All Genyris expressions↓ are parsed and stored as linked-lists. A single
line is converted into a single list. Sub-expressions are denoted in two
ways, either within parentheses on a single line, or by an indented line.
For example the following line contains two sub-expressions:

Alpha (Beta Charlie) (Delta)

Sub-expressions made using parentheses must remain within a single line,
they are not permitted to wrap. Indented lines are deemed to be
sub-expressions of the superior, less indented, lines above. The above
expression can be written in indented form as follows:

Alpha
   Beta Charlie
   Delta
"""

So it's similar to the basic rule of t-exprs, except for wrapping ALL
sublines in lists, even if they consist of a single element.
It can get away with that simpler rule because all data objects are
callable and eval to themself.

[In fact it's much cleverer, though that's irrelevant for us.
All objects are actually macros ("lazy functions" in the manual's
terminology).  What objects do if called with arguments - e.g. ("foo" arg1
arg2) - is evaluate those arguments in a dynamic-binding env enriched by
the object's methods, and return the last value.
Dynamic scope only affects names starting with a dot, other names use
lexical scoping.
All this forms a clever implementation of method calling:
> "ball" (.replace "l" "na")
"banana"
]
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss

Reply via email to