Is it possible to build websites using D? I know the website is
written in D but there isn't a library for web that handles http
request, parsing the page, query string etc?
On Friday, 8 November 2013 at 06:25:15 UTC, qznc wrote:
On Friday, 8 November 2013 at 05:46:29 UTC, ProgrammingGhost
wrote:
I'm a D noob. .map!(a = a.length) seems like the lambda is
passed into the template. .map!split just confuses me. What
is split? I thought only types can be after !. I
I'm a D noob. .map!(a = a.length) seems like the lambda is
passed into the template. .map!split just confuses me. What is
split? I thought only types can be after !. I would guess split
is a standard function but then shouldn't it be map!(split)?
const wordCount = file.byLine()
As the OP of this thread I want to say that I think nullable is
the solution http://dlang.org/phobos/std_typecons.html but I
dislike how I cant pass 5 or null to a parameter that is
nullable!int, nullable!string
On Friday, 18 October 2013 at 20:09:37 UTC, Blake Anderton wrote:
I agree a null value and empty array are separate concepts, but
from my very anecdotal/non rigorous point of view I really
appreciate D's ability to treat them as equivalent.
My day job mostly involves C# and array code almost
On Friday, 18 October 2013 at 21:15:32 UTC, H. S. Teoh wrote:
On Fri, Oct 18, 2013 at 10:04:52PM +0200, Meta wrote:
On Friday, 18 October 2013 at 19:59:26 UTC, H. S. Teoh wrote:
...because it eliminates an unnecessary distinction between an
empty sequence and a non-existent sequence (which then
On Friday, 18 October 2013 at 22:29:45 UTC, Max Samukha wrote:
On Friday, 18 October 2013 at 20:03:22 UTC, Maxim Fomin wrote:
(By the way, I don't see why the code above provoked you to C#
talks).
Because you:
1) Mentioned C# as a safer alternative to D.
2) Are using reflection to
You could use T[]* and pass a null pointer as default?
Yet this answer wasn't on the first page.
I see I can't write fn([1,2]) anymore so I'm unsure how this
solution compares to using Nullable (I can't write fn([1,2]) with
nullable either).
How do I find out if null was passed in? As you can guess I
wasn't happy with the current behavior.
Code:
import std.stdio;
void main() {
fn([1,2]);
fn(null);
fn([]);
}
void fn(int[] v) {
Sorry I misspoke. I meant to say empty array or not null passed
in. The 3rd call to fn is what I didn't like.
On Thursday, 17 October 2013 at 23:00:12 UTC, Adam D. Ruppe wrote:
On Thursday, 17 October 2013 at 22:50:22 UTC, ProgrammingGhost
wrote:
How do I find out if null was passed in?
try if(v is null) { use default }
if all you care about is if there's contents, I like to use
if(v.length
On Thursday, 17 October 2013 at 23:14:51 UTC, anonymous wrote:
On Thursday, 17 October 2013 at 22:50:22 UTC, ProgrammingGhost
wrote:
How do I find out if null was passed in? As you can guess I
wasn't happy with the current behavior.
Code:
import std.stdio;
void main
What is the fastest way for me to learn D? I think what I want is
a syntax reference manual and a good tutorial to learn how to
find and use libs.
Walter Bright: Did you have a beard during anytime of the the
design or development of D? and if not do you regret it?
Context: http://c2.com/cgi/wiki?LanguageAuthorBeardPattern
On Friday, 4 October 2013 at 20:54:07 UTC, Walter Bright wrote:
On 10/4/2013 1:23 PM, ProgrammingGhost wrote:
Walter Bright: Did you have a beard during anytime of the the
design or
development of D? and if not do you regret it?
No. I had a beard in my early 20's, and it never stopped
I assume D can do incremental builds? How fast is the compile
time compared to C++? Is it slower? C++ only has to read its
header files and D would need to look at the entire project
source code (or obj files?).
On Monday, 19 August 2013 at 11:01:54 UTC, Jacob Carlborg wrote:
The compiler will start compiling the files passed on the
command line. It will read the files asynchronously and then
lex, parse build an AST and do semantic analyze.
When the semantic analyze is done it will have access to all
On Sunday, 18 August 2013 at 17:28:16 UTC, Iain Buclaw wrote:
On 18 August 2013 18:24, ProgrammingGhost
dsioafiseghvfawklncfskz...@sdifjsdiovgfdisjcisj.com wrote:
On Sunday, 11 August 2013 at 18:25:02 UTC, Andrei Alexandrescu
wrote:
For a column of text to be readable it should have not much
On Monday, 19 August 2013 at 17:35:39 UTC, John Colvin wrote:
On Monday, 19 August 2013 at 17:15:35 UTC, ProgrammingGhost
wrote:
On Monday, 19 August 2013 at 11:01:54 UTC, Jacob Carlborg
wrote:
The compiler will start compiling the files passed on the
command line. It will read the files
How does the compiler do static typing of multiple source files?
I heard D malloc memory and doesn't free to speed up compilation
but I am guessing every instance doesn't compile just one source
file? My question is if I have a function in this file and
another in a different file what does the
On Sunday, 11 August 2013 at 18:25:02 UTC, Andrei Alexandrescu
wrote:
For a column of text to be readable it should have not much
more than 10 words per line. Going beyond that forces eyes to
scan too jerkily and causes difficulty in following line breaks.
This.
Also some people can read a
21 matches
Mail list logo