Dale 是一个系统编程语言,使用 S- 表达式作为语法,支持语义宏。基本语言类似 C,提供如下额外特性:
local type deduction;
overloaded functions;
anonymous functions;
function structs;
reference parameters;
object lifetime operations;
namespaces;
modules;
concepts; and
compiler introspection.
示例代码:
(import cstdio) (def main (fn extern-c int (void) (printf "hello, world\n")))