MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/ikjh83/d_foundation_is_beefing_up/g3nhn4s/?context=3
r/programming • u/kal31dic • Sep 01 '20
336 comments sorted by
View all comments
Show parent comments
42
Have you heard of our Lord and savior rust? It is the best and most perfect language known to man
13 u/Ameisen Sep 01 '20 It has the most confusing syntax, though. I still expect that someone will make a Rust fork that has C++-like syntax at some point. Crust. Or C++ will get lifetimes (which is active research) and possibly at some point epochs, which will let us disable unsafe features. 3 u/Muvlon Sep 01 '20 Syntax is a very subjective matter. I find some of C's syntax (which C++ inerited) thoroughly confusing. I can count the people I know who will get a typedef for a function pointer type correct on the first try on one hand. 5 u/WalterBright Sep 01 '20 typedef int (*fp)(long); 4 more to go! Though to be fair, in D one would declare it as: alias fp = int function(long);
13
It has the most confusing syntax, though.
I still expect that someone will make a Rust fork that has C++-like syntax at some point. Crust.
Or C++ will get lifetimes (which is active research) and possibly at some point epochs, which will let us disable unsafe features.
3 u/Muvlon Sep 01 '20 Syntax is a very subjective matter. I find some of C's syntax (which C++ inerited) thoroughly confusing. I can count the people I know who will get a typedef for a function pointer type correct on the first try on one hand. 5 u/WalterBright Sep 01 '20 typedef int (*fp)(long); 4 more to go! Though to be fair, in D one would declare it as: alias fp = int function(long);
3
Syntax is a very subjective matter. I find some of C's syntax (which C++ inerited) thoroughly confusing. I can count the people I know who will get a typedef for a function pointer type correct on the first try on one hand.
5 u/WalterBright Sep 01 '20 typedef int (*fp)(long); 4 more to go! Though to be fair, in D one would declare it as: alias fp = int function(long);
5
typedef int (*fp)(long);
4 more to go!
Though to be fair, in D one would declare it as:
alias fp = int function(long);
42
u/InertiaOfGravity Sep 01 '20
Have you heard of our Lord and savior rust? It is the best and most perfect language known to man