LWN.net Logo

Reitter: Answering the question: "How do I develop an app for GNOME?"

Reitter: Answering the question: "How do I develop an app for GNOME?"

Posted Feb 6, 2013 0:18 UTC (Wed) by HelloWorld (guest, #56129)
In reply to: Reitter: Answering the question: "How do I develop an app for GNOME?" by Frej
Parent article: Reitter: Answering the question: "How do I develop an app for GNOME?"

Let has nothing to do with immutability, you can use set! to modify a let binding. The point of let is that you can give a value a name within an expression. (f (let ((a 0)) a)) is valid scheme. f(var a = 1; a) is not valid JavaScript. The whole idea of separating expressions and statements is completely backwards.

That said, I wouldn't like to program in scheme either. Syntax does matter and I also want a good static type system.


(Log in to post comments)

Reitter: Answering the question: "How do I develop an app for GNOME?"

Posted Feb 6, 2013 0:36 UTC (Wed) by hummassa (subscriber, #307) [Link]

the equivalent to

> (f (let ((a 0)) a))

in javascript is written like

> f( (function() { var a = 0; return a })() )

and it works.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds