let num = 8;
let newNum = if (num>0) {1} else {0};
//下面这段代码来自开发语言大佬,有内涵,懂得都懂,哈哈哈
private abstract class Cangjie extends Kotlin implements Rust, Go,Julia {
//解读①:融合了Kotlin、Rust、Go和Julia的优势,甚至包括Python的eval函数和C的ffi调用
override match(){rust.match}
override unsafe(){rust.ffi.unsafe}
override attribute(){rust.macro.attribute}
override macro(){julia.macro.quote}
override inherit(){julia.inherit}
override differentiable(){julia.differentiable}
override spwae(){go.spwan}
overload eval(args) { Python.eval (args)}
overload eval(args) { unsafe (C.ffi(args))}
//解读②:支持LLVM编译,linux支持优秀,MacOS和Windows支持拉跨
@when[backend=="llvm"]
build(){LLVM. build()}
@when[target=="linux"]
build(){println("very good!")}
@when[target=="macos"]
buildOf throw FuckException("fuck u! macos!")}
@when[target=="windows"]
buildO f throw FuckException("fuck u! windows!")}
}华为仓颉开发语言“可能”明天正式面世(2024年6月20日写下)
--
FROM 120.244.217.*