Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-16 Thread codephantom via Digitalmars-d
On Friday, 17 November 2017 at 05:50:24 UTC, rumbu wrote: You are not ending with nothing, you are ending with a run time error in D. In C# it's a compile-time error. Ideally, something ending for sure in an error at run time, must be catch at compile-time. Well.. sometimes it's just nice...t

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-16 Thread rumbu via Digitalmars-d
On Friday, 17 November 2017 at 02:25:21 UTC, codephantom wrote: On Friday, 17 November 2017 at 01:47:01 UTC, Michael V. Franklin wrote: It peeked my interested, because when I first started studying D, the lack of any warning or error for this trivial case surprised me. // Example A class T

Re: [OT] mobile rising

2017-11-16 Thread Joakim via Digitalmars-d
On Thursday, 16 November 2017 at 23:03:41 UTC, solidstate1991 wrote: On Wednesday, 15 November 2017 at 11:46:48 UTC, Joakim wrote: [...] I'm thinking on picking up some Android tablet for development purposes, would be good to port my game engine for mobile devices, probably have to resort f

Re: Zig mentions D in justifying its existence

2017-11-16 Thread bauss via Digitalmars-d
On Thursday, 16 November 2017 at 22:58:32 UTC, solidstate1991 wrote: Often I just don't find a use for them, so I won't make the compiler to do CTFE if it's not needed. Why wouldn't you? It gives less overhead at run-time, giving your application better performance.

TLC for ddox

2017-11-16 Thread Andrei Alexandrescu via Digitalmars-d
Whenever I look at the documentation, I find things that could be improved. Consider https://dlang.org/library/, one of the most important pages - the portal - of the hopefully future default documentation renderer. It goes something like this: Module Description

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-16 Thread codephantom via Digitalmars-d
On Friday, 17 November 2017 at 01:47:01 UTC, Michael V. Franklin wrote: In C#, you get a compiler error. // Example B class Test { public int Value; } public class Program { public static void Main() { Test t; t.Value++; // Er

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-16 Thread codephantom via Digitalmars-d
On Friday, 17 November 2017 at 01:47:01 UTC, Michael V. Franklin wrote: It peeked my interested, because when I first started studying D, the lack of any warning or error for this trivial case surprised me. // Example A class Test { int Value; } void main(string[] args) { Test t;

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-16 Thread codephantom via Digitalmars-d
On Friday, 17 November 2017 at 01:47:01 UTC, Michael V. Franklin wrote: // Example A class Test { int Value; } void main(string[] args) { Test t; t.Value++; // No compiler error, or warning. Runtime error! } //Test t; Test t = new Test;

Re: Note from a donor

2017-11-16 Thread solidstate1991 via Digitalmars-d
On Wednesday, 15 November 2017 at 04:34:09 UTC, Walter Bright wrote: On 11/14/2017 7:15 PM, solidstate1991 wrote: Walter Bright: What's the licensing state of DMC and OPTLINK? Boost Can it made open-source? Yes. If yes, we should patch in a COFF32/64 support, maybe even port it to D for

Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-16 Thread Michael V. Franklin via Digitalmars-d
I ran into this blog post today: https://blogs.msdn.microsoft.com/dotnet/2017/11/15/nullable-reference-types-in-csharp/ It peeked my interested, because when I first started studying D, the lack of any warning or error for this trivial case surprised me. // Example A class Test { int Va

Re: Should aliasing a lambda expression be allowed?

2017-11-16 Thread Meta via Digitalmars-d
On Thursday, 16 November 2017 at 16:10:50 UTC, Meta wrote: int function(int) f1 = (int n) => n; int function(int) f2 = (char c) => c; Should be int function(char)

Re: DConf 2018 Logo

2017-11-16 Thread H. S. Teoh via Digitalmars-d
On Thu, Nov 16, 2017 at 08:21:41PM +, user1234 via Digitalmars-d wrote: > On Thursday, 16 November 2017 at 14:11:22 UTC, Dukc wrote: > > On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei Alexandrescu > > wrote: > > > Hello, for all of you with expertise in graphics, we'd be in your > > > d

Re: [OT] mobile rising

2017-11-16 Thread solidstate1991 via Digitalmars-d
On Wednesday, 15 November 2017 at 11:46:48 UTC, Joakim wrote: I just saw this post about the upcoming Lenovo/AT&T Moto Tab and thought of you: https://www.phonearena.com/news/Lenovo-Moto-Tab-ATT-features_id99782 For $300, you can buy a tablet that lets you do everything you normally do on a t

Re: Zig mentions D in justifying its existence

2017-11-16 Thread solidstate1991 via Digitalmars-d
On Tuesday, 14 November 2017 at 01:01:16 UTC, codephantom wrote: As someone new to D, I think this point stood out the most(for me): "C++, Rust, and D have a large number of features and it can be distracting from the actual meaning of the application you are working on. One finds themselves

Re: DConf 2018 Logo

2017-11-16 Thread solidstate1991 via Digitalmars-d
On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei Alexandrescu wrote: Hello, for all of you with expertise in graphics, we'd be in your debt if you could create a logo for DConf 2018. Proposals would be appreciated! Thanks, Andrei I think I'll do something in Illustrator, probably our

Re: DConf 2018 Logo

2017-11-16 Thread user1234 via Digitalmars-d
On Thursday, 16 November 2017 at 14:11:22 UTC, Dukc wrote: On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei Alexandrescu wrote: Hello, for all of you with expertise in graphics, we'd be in your debt if you could create a logo for DConf 2018. Proposals would be appreciated! Thanks, Andr

Re: DConf 2018 Logo

2017-11-16 Thread user1234 via Digitalmars-d
On Wednesday, 15 November 2017 at 22:43:03 UTC, codephantom wrote: On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei Alexandrescu wrote: Hello, for all of you with expertise in graphics, we'd be in your debt if you could create a logo for DConf 2018. Proposals would be appreciated! Thank

Re: Language server protocol

2017-11-16 Thread WebFreak001 via Digitalmars-d
On Thursday, 16 November 2017 at 19:42:09 UTC, Arun Chandrasekaran wrote: On Thursday, 16 November 2017 at 19:22:37 UTC, Johannes Pfau wrote: https://github.com/Pure-D/serve-d -- Johannes BTW, what are the feature available with serve-d? Does it support all of the below? Code completion,

Re: Deprecate implicit `int` to `bool` conversion for integer literals

2017-11-16 Thread Andrei Alexandrescu via Digitalmars-d
On 11/16/2017 02:29 AM, Michael V. Franklin wrote: On Thursday, 16 November 2017 at 07:24:44 UTC, Andrei Alexandrescu wrote: Try it here: https://run.dlang.io/is/nfMGfG DMD-nightly Cool, thanks. That seems to be an unrelated bug. Have you added it to bugzilla? Thanks! -- Andrei Bugzilla Is

Re: Language server protocol

2017-11-16 Thread Arun Chandrasekaran via Digitalmars-d
On Thursday, 16 November 2017 at 19:22:37 UTC, Johannes Pfau wrote: https://github.com/Pure-D/serve-d -- Johannes BTW, what are the feature available with serve-d? Does it support all of the below? Code completion, Hover, Jump to def, Workspace symbols, Find references, Stream reference

Re: Language server protocol

2017-11-16 Thread Arun Chandrasekaran via Digitalmars-d
On Thursday, 16 November 2017 at 19:22:37 UTC, Johannes Pfau wrote: Am Thu, 16 Nov 2017 19:09:14 + https://github.com/Pure-D/serve-d We should probably get it listed in the homepage.

Re: Language server protocol

2017-11-16 Thread Johannes Pfau via Digitalmars-d
Am Thu, 16 Nov 2017 19:09:14 + schrieb Arun Chandrasekaran : > Is someone working on D community to implement > https://langserver.org ? > > What will the D community miss out if we ignore LSP? > > PS: HackerPilot's tools are very helpful. https://github.com/Pure-D/serve-d -- Johannes

Language server protocol

2017-11-16 Thread Arun Chandrasekaran via Digitalmars-d
Is someone working on D community to implement https://langserver.org ? What will the D community miss out if we ignore LSP? PS: HackerPilot's tools are very helpful.

Re: Should aliasing a lambda expression be allowed?

2017-11-16 Thread Meta via Digitalmars-d
On Thursday, 16 November 2017 at 13:05:51 UTC, Petar Kirov [ZombineDev] wrote: On Wednesday, 15 November 2017 at 19:29:29 UTC, Steven Schveighoffer wrote: On 11/15/17 11:59 AM, Andrea Fontana wrote: On Wednesday, 15 November 2017 at 15:25:06 UTC, Steven Schveighoffer wrote: alias foo = lambda1

Re: DConf 2018 Logo

2017-11-16 Thread Dukc via Digitalmars-d
On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei Alexandrescu wrote: Hello, for all of you with expertise in graphics, we'd be in your debt if you could create a logo for DConf 2018. Proposals would be appreciated! Thanks, Andrei Probably too crude to be worth considering but feel fre

Re: Should aliasing a lambda expression be allowed?

2017-11-16 Thread Petar via Digitalmars-d
On Wednesday, 15 November 2017 at 19:29:29 UTC, Steven Schveighoffer wrote: On 11/15/17 11:59 AM, Andrea Fontana wrote: On Wednesday, 15 November 2017 at 15:25:06 UTC, Steven Schveighoffer wrote: alias foo = lambda1; alias foo = lambda2; What? Yep. Would never have tried that in a million y

Re: DConf 2018 Logo

2017-11-16 Thread JamesD via Digitalmars-d
On Wednesday, 15 November 2017 at 22:43:03 UTC, codephantom wrote: On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei Alexandrescu wrote: Hello, for all of you with expertise in graphics, we'd be in your debt if you could create a logo for DConf 2018. Proposals would be appreciated! Thank

Re: Zig mentions D in justifying its existence

2017-11-16 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 16 November 2017 at 02:48:27 UTC, Tony wrote: I am surprised C hasn't tried to become a "better C". Most of the people that wanted to work on a spec for a better C has already moved to C++ or other languages. The ones that remain want C to stay simple, but they have added new stu

Re: Bloat in Executable

2017-11-16 Thread Joakim via Digitalmars-d
On Thursday, 16 November 2017 at 03:32:26 UTC, codephantom wrote: // --- module test; import core.stdc.stdio; extern (C) int main() { printf("hello world\n"); return 0; } // --- compiled with dmd v2.077.0, using the -bett