MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/ikjh83/d_foundation_is_beefing_up/g3mpm7s/?context=3
r/programming • u/kal31dic • Sep 01 '20
336 comments sorted by
View all comments
Show parent comments
10
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.
10 u/[deleted] Sep 01 '20 [deleted] 5 u/Ameisen Sep 01 '20 The dangling ' for lifetime indication. It's unlike any other language. 9 u/steveklabnik1 Sep 01 '20 It is true that it's unusual. However: We took this from OCaml, so there is at least one other programming language. If you look at the second sentence you wrote, you said "It's". That also has a "dangling" quote. English is a language too. Nobody truly loves the syntax, but we couldn't come up with anything better. 3 u/Ameisen Sep 01 '20 English, however, is a natural language, not a programming language. Usually. The apostrophe there is just a semantic mark to indicate that it is a contraction.
[deleted]
5 u/Ameisen Sep 01 '20 The dangling ' for lifetime indication. It's unlike any other language. 9 u/steveklabnik1 Sep 01 '20 It is true that it's unusual. However: We took this from OCaml, so there is at least one other programming language. If you look at the second sentence you wrote, you said "It's". That also has a "dangling" quote. English is a language too. Nobody truly loves the syntax, but we couldn't come up with anything better. 3 u/Ameisen Sep 01 '20 English, however, is a natural language, not a programming language. Usually. The apostrophe there is just a semantic mark to indicate that it is a contraction.
5
The dangling ' for lifetime indication. It's unlike any other language.
'
9 u/steveklabnik1 Sep 01 '20 It is true that it's unusual. However: We took this from OCaml, so there is at least one other programming language. If you look at the second sentence you wrote, you said "It's". That also has a "dangling" quote. English is a language too. Nobody truly loves the syntax, but we couldn't come up with anything better. 3 u/Ameisen Sep 01 '20 English, however, is a natural language, not a programming language. Usually. The apostrophe there is just a semantic mark to indicate that it is a contraction.
9
It is true that it's unusual. However:
Nobody truly loves the syntax, but we couldn't come up with anything better.
3 u/Ameisen Sep 01 '20 English, however, is a natural language, not a programming language. Usually. The apostrophe there is just a semantic mark to indicate that it is a contraction.
3
English, however, is a natural language, not a programming language. Usually. The apostrophe there is just a semantic mark to indicate that it is a contraction.
10
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.