D (Programming Language)

D (Programming Language)

D (Programming Language)

编程语言

5

软件描述

D是一种具有类似C语法和静态类型的语言。它实际地结合了高效性、控制力和建模能力,同时兼顾安全性与程序员的生产力。

官方网站

访问软件的官方网站了解更多信息

官方认证

dlang.org

安全链接HTTPS

什么是 D (Programming Language)?

D is a language with C-like syntax and static typing. It pragmatically combines efficiency, control, and modeling power, with safety and programmer productivity. Convenience D allows writing large code fragments without redundantly specifying types, in the style of dynamic languages. Yet static inference deduces types and other code properties, giving the best of both the static and the dynamic worlds. Automatic memory management makes for safe, simple, and robust code. D also supports scoped resource management (aka the RAII idiom) and scope statements for deterministic transactional code that is easy to write and read. Built-in linear and associative arrays, slices, and ranges make daily programming simple and pleasant for tasks small and large. Power The best paradigm is to not impose one at the expense of others. D offers classic polymorphism, value semantics, functional style, generics, generative programming, contract programming, and more—all harmoniously integrated. D offers an innovative approach to concurrency featuring true immutable data, message passing, no sharing by default, and controlled mutable sharing across threads. From simple scripts to large projects, D has the breadth to scale with any application's needs: unit testing, information hiding, refined modularity, fast compilation, precise interfaces. Efficiency D compiles naturally to efficient native code. D is designed such that most "obvious" code is fast and safe. On occasion a function might need to escape the confines of type safety for ultimate speed and control. For such rare cases D offers native pointers, type casts, access to any C function without any intervening translation, and even inline assembler. The @safe, @trusted, and @system modular attributes allow the programmer to best decide the safety/efficiency tradeoffs of a particular application, and have the compiler check for consistency.

评分5 / 5.0

支持平台

标签