News for hackers. Stuff that matters.
Re:The Idea of Lisp by wtetzner on Friday December 16, 2016 @11:26AM (#13194324)
I'm not sure I understand why it matters if the syntax requires braces or not. The things inside the braces are still expressions.
Re:The Idea of Lisp by mroll on Friday December 16, 2016 @11:44AM (#13194524)
It matters because if the braces are not syntax, you can decide what code to execute as the condition body at runtime.

    set condition-body {puts "Hello, world"}
    if { $condition } $condition-body
To get this to run, you need to splice in the condition-body like so,

    if { $condition } {*}$condition-body
But you get the point.
Re:The Idea of Lisp by wtetzner on Friday December 16, 2016 @04:50PM (#13197206)
But the "then" and "else" parts of the Rust "if" are expressions. What you're talking about doesn't seem to be related to which things are expressions, it's more like being able to eval code at runtime.