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-03 6:12

Name: Anonymous 2012-02-03 8:10

>>40
It means absolutely everything. C++ was also designed to be used by many different types of people; it was designed to be everything to everyone; it was designed to be ubiquitous, to be everywhere and used for everything. D follows this same philosophy and design; hence, it is designed to be ubiquitous.

Name: Anonymous 2012-02-03 8:22

>>40
Almost every language is "designed to be popular".
Except Lisp and Haskell, which are designed to be unusable shit.

Name: Anonymous 2012-02-03 18:39

>>33
This is programming. Math should have a big part, and it does so very nicely in Haskell.

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