Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Let's Code in D

Name: Anonymous 2012-02-02 9:08

Hey /prog/, why aren't you writing D, God's gift to programmers? Let's get this ball rolling.

import std.stdio;

template factorial(int n)
{
    const factorial = n * factorial!(n-1);
}

template factorial(int n : 1)
{
    const factorial = 1;
}

void main(string[] argv)
{
   writeln(factorial!(10));
}

Name: Anonymous 2012-02-02 13:14

>>10
>Native compiled code (for you kids, that means it's faster than your toy interpreted languages)
>Clean syntax
>Statically typed with type inference
>Astronomically better template syntax than other C++-alikes
>Combines the power of C++ template metaprogramming with compile-time reflection utilities
>Out-of-the-box support for contract programming
>Support for purely functional programming
>Vastly improved and simplified OOP

I could go on... but why don't you check it out for yourself?
http://www.d-programming-language.org

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List