Earlier quoted context omitted.
> `~` is harder to search for, as well as not on all keyboards. Which keyboards do not have a '~' key? How do those people type a path relative to their home directory? Use $HOME/foo/bar all the time?
Many international keyboards don't have a tilde key. For example it's not shown on the Finnish/Swedish MacBook Pro keyboard at all. It's not difficult to type (Alt+¨ followed by a space), but you can't find it by looking at the keyboard.
‘~’ is being removed from Rust
31–40 of 117 posts
Re: ‘~’ is being removed from Rust
#32Re: ‘~’ is being removed from Rust
#33Is this a good time to point out that the language is stabilizing?
Re: ‘~’ is being removed from Rust
#34I get the arguments, and they're logically sound, but in the end it's beginnning to read like C++03.
On the one hand, the Rust community's generalising a lot of stuff, which sounds great, but then adding a bunch of macros (I know, this ain't yo daddy's C macros) to replace first-class citizens ([1, 2, 3] => vec!(1, 2, 3) for example), and I worry how IDEs will be able to handle macros from an autocomplete/intellisense standpoint, not just checking/displaying type information when using them, but also writing new ones.
I guess it's a language primarily by and for text editor users, and I'm beyond that point these days.
As I said, I started following the language daily a year ago, and a couple of months ago I was thinking of jumping in around this point in time, but right now I feel like I want to wait another year to see if the syntax has become more readily intelligible.
I still think it's a fantastic effort, and kudos for all the hard work.
Re: ‘~’ is being removed from Rust
#35~ for allocation was weird, but I will miss lack of ~ as analogy to * . Will they change * to `RawPointer ` too? ;) I'm not happy about change of [T] to Vec either. I hope all these changes will make a full circle and get a first-class syntax back.
>first-class syntax Perl-y symbol nonsense is not a first-class syntax
Re: ‘~’ is being removed from Rust
#36Re: ‘~’ is being removed from Rust
#37Gee, with this few sigils remaining, Rust is going to have a very hard time finding widespread adoption, since it won't stand out from competing languages!
Re: ‘~’ is being removed from Rust
#38Earlier quoted context omitted.
Many international keyboards don't have a tilde key. For example it's not shown on the Finnish/Swedish MacBook Pro keyboard at all. It's not difficult to type (Alt+¨ followed by a space), but you can't find it by looking at the keyboard.
That's a specious argument IMO. The same case can be made for the pipe/vertical bar character. So I guess they have to remove that from the language too so Mac users won't be mildly inconvenienced.
Re: ‘~’ is being removed from Rust
#39Earlier quoted context omitted.
Thanks for the explanation! This change makes the code more clear to me. When I first read some rust code, those ~ and @ are annoying because I don't know their meaning and hard to search them for a explanation. The box keyword is a much better way for developers.
Thank you. That's exactly our thought process too, though there is some reasonable disagreement about it.
Re: ‘~’ is being removed from Rust
#40Earlier quoted context omitted.
Thanks for the explanation! This change makes the code more clear to me. When I first read some rust code, those ~ and @ are annoying because I don't know their meaning and hard to search them for a explanation. The box keyword is a much better way for developers.
Thank you. That's exactly our thought process too, though there is some reasonable disagreement about it.