系统编程语言 Loci

码农软件 · 软件分类 · 脚本编程语言 · 2019-03-04 18:59:47

软件介绍

Loci 是一个多范式的系统编程语言,使用更直观的方式描述,跟 C++ 很类似。Loci 并不是为了弥补 C++ 的某些不足而推出,同时引入全新范式和编程风格,这些对开发者来说非常方便。此外在性能上 Loci 也没有比 C 和 C++ 强。

一段简单的代码示例:

class ExampleClass(int a, int b) {
        // Constructor with default implementation.
        static create = default;

        int getA() const {
                return @a;
        }

        int getB() const {
                return @b;
        }
}

interface ExampleInterface {
        int getA() const;
}

void printA(const ExampleInterface& examplePoly) {
        printf(C"A equals %d.", examplePoly.getA());
}

int main() {
        auto exampleInst = ExampleClass(1, 2);
        printA(exampleInst);
        return 0;
}

本文地址:https://codercto.com/soft/d/629.html

The Everything Store

The Everything Store

Brad Stone / Little, Brown and Company / 2013-10-22 / USD 28.00

The definitive story of Amazon.com, one of the most successful companies in the world, and of its driven, brilliant founder, Jeff Bezos. Amazon.com started off delivering books through the mail. Bu......一起来看看 《The Everything Store》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

MD5 加密
MD5 加密

MD5 加密工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具