Jump to page: 1 2
Thread overview
More D Features Working Their Way Into C++
Nov 27, 2022
Walter Bright
Nov 27, 2022
IGotD-
Nov 27, 2022
zjh
Nov 27, 2022
Tejas
Nov 27, 2022
Tejas
Nov 27, 2022
zjh
Nov 27, 2022
user1234
Nov 27, 2022
zjh
Nov 27, 2022
ryuukk_
Nov 27, 2022
zjh
Nov 27, 2022
Paulo Pinto
Nov 27, 2022
zjh
Nov 27, 2022
Paulo Pinto
Nov 27, 2022
Tejas
Nov 27, 2022
ryuukk_
Nov 27, 2022
Paulo Pinto
Nov 27, 2022
ryuukk_
Nov 27, 2022
12345swordy
Nov 27, 2022
ryuukk_
November 26, 2022
https://twitter.com/WalterBright/status/1596658148932489218
November 27, 2022
On Sunday, 27 November 2022 at 00:20:08 UTC, Walter Bright wrote:
> https://twitter.com/WalterBright/status/1596658148932489218

I think more in the line, C++ will introduce yet another way to code an existing thing.

This gif never gets old and history keeps repeating itself.
https://i.imgur.com/3wlxtI0.gifv
November 27, 2022

On Sunday, 27 November 2022 at 00:20:08 UTC, Walter Bright wrote:

>

https://twitter.com/WalterBright/status/1596658148932489218

I can't access Twitter.
But big languages, especially the strategy of C++, just follow others. Any language with new ideas will be copied.
Therefore, small languages like D should first consolidate the existing implementation.

November 27, 2022

On Sunday, 27 November 2022 at 01:22:57 UTC, zjh wrote:

>

On Sunday, 27 November 2022 at 00:20:08 UTC, Walter Bright wrote:

>

https://twitter.com/WalterBright/status/1596658148932489218

I can't access Twitter.
But big languages, especially the strategy of C++, just follow others. Any language with new ideas will be copied.
Therefore, small languages like D should first consolidate the existing implementation.

Basically the ! syntax used by our templates has been developed into Circle, not C++

It looks like this


template![int N]
void func(int i){ return N;}
// Used like
int d = func!44;
November 27, 2022

On Sunday, 27 November 2022 at 03:12:37 UTC, Tejas wrote:

>

On Sunday, 27 November 2022 at 01:22:57 UTC, zjh wrote:

>

On Sunday, 27 November 2022 at 00:20:08 UTC, Walter Bright wrote:

>

https://twitter.com/WalterBright/status/1596658148932489218

I can't access Twitter.
But big languages, especially the strategy of C++, just follow others. Any language with new ideas will be copied.
Therefore, small languages like D should first consolidate the existing implementation.

Basically the ! syntax used by our templates has been developed into Circle, not C++

It looks like this


template![int N]
void func(int i){ return N;}
// Used like
int d = func!44;

Correct code 😅


 template![int N]
 int func(int i){ return N;}
 // Used like
 int d = func!44;

November 27, 2022

On Sunday, 27 November 2022 at 01:22:57 UTC, zjh wrote:

>

On Sunday, 27 November 2022 at 00:20:08 UTC, Walter Bright wrote:

>

https://twitter.com/WalterBright/status/1596658148932489218

I can't access Twitter.

If this works for you : https://nitter.net/WalterBright/status/1596658148932489218
Then install this plugin: https://chrome.google.com/webstore/detail/nitter-redirect/mohaicophfnifehkkkdbcejkflmgfkof

>

But big languages, especially the strategy of C++, just follow others. Any language with new ideas will be copied.
Therefore, small languages like D should first consolidate the existing implementation.

November 27, 2022

On Sunday, 27 November 2022 at 05:16:13 UTC, user1234 wrote:

>

https://nitter.net/WalterBright/status/1596658148932489218

I can't visit, but thank you all the same.

November 27, 2022

On Sunday, 27 November 2022 at 03:14:03 UTC, Tejas wrote:

>

 template![int N]
 int func(int i){ return N;}
 // Used like
 int d = func!44;

template![int N] can be template[int N].
Maybe it's too picky.

November 27, 2022
On Sunday, 27 November 2022 at 00:20:08 UTC, Walter Bright wrote:
> https://twitter.com/WalterBright/status/1596658148932489218

Which is actually Circle, a C++ superset, without any guarantees if ISO C++ will ever adopt it.

If it ever happens, it will be yet another reason to keep using C++, as the C++ developers will get D goodies, alongside the large ecosystem of libraries, IDE and graphical tooling that they enjoy today.

So it is a bit of pyrrhic victory having C++ adopting D features.
November 27, 2022

On Sunday, 27 November 2022 at 09:04:23 UTC, Paulo Pinto wrote:

>

On Sunday, 27 November 2022 at 00:20:08 UTC, Walter Bright wrote:

>

https://twitter.com/WalterBright/status/1596658148932489218

Which is actually Circle, a C++ superset, without any guarantees if ISO C++ will ever adopt it.

If it ever happens, it will be yet another reason to keep using C++, as the C++ developers will get D goodies, alongside the large ecosystem of libraries, IDE and graphical tooling that they enjoy today.

So it is a bit of pyrrhic victory having C++ adopting D features.

If D can be close to seamless interfacing C++, there will be many people using C++ and d at the same time. This is not a bad thing.
You can get the benefits of C++ and d at the same time.
Even, if you can seamlessly interface rust,d programmers can directly use the rust library. Wouldn't it be nice?

« First   ‹ Prev
1 2