系统编程语言 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

Head First Web Design

Head First Web Design

Ethan Watrall、Jeff Siarto / O’Reilly Media, Inc. / 2009-01-02 / USD 49.99

Want to know how to make your pages look beautiful, communicate your message effectively, guide visitors through your website with ease, and get everything approved by the accessibility and usability ......一起来看看 《Head First Web Design》 这本书的介绍吧!

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具