Xah Talk Show 2025-02-28 Ep621 Wolfram language coding, geometry, parabola caustics, progn, CompoundExpression
- ๐ WARNING: most idiotic tutorial, written by a dolt ใFunctional Programming in Lean 2023 By David Thrane Christiansen. At https://lean-lang.org/functional_programming_in_lean/ใ
if (false) {
console.log("is true");
console.log("and i love u");
} else {
console.log("i hate u");
console.log("ok?");
}
(progn
(message "hello")
(message "world")
)
(if t
(progn
(print (format "hello world"))
(print (format "love u")))
(progn
(print (format "hate u"))))
If[ True ,
CompoundExpression[
Print[ "hi" ],
Print[ "i love u" ]
] ,
Print[ "i hate u" ]
]
If[ True ,
Print[ "hi" ];
Print[ "i love u" ] ,
Print[ "i hate u" ]
]
CompoundExpression[a,b]
a;b
(+ 1 (* 2 3) 4 (+ 5 6))
console.log( 1 + 2 * 3 + 4 + (5 + 6) )