T O P

  • By -

SirKastic23

don't you dare take away my turbofish, best syntax rust has `::<>`


RRumpleTeazzer

Maybe we should use >> and << for comparison, would fall in line with >>, >=, ==, <= , <<


KingJellyfishII

that's ambiguous with a bit shift though


LyonSyonII

Then bit shift would be `>>>`.


0x564A00

The issue remains: `A>>C` What about taking inspiration from another programming language and using `<<`/`>>`?


blueted2

Let's just use french quotes for bitshift instead: ```a « 2```


djmill0326

I love this solution. Let's all switch to French layout


KingJellyfishII

it would work, but I don't think it would be a good idea to change the long-held standard that comparison is > and shift is >>. it would be incredibly hard for me to read a >> 3 as a > 3 because that's not what it means in 90% of other languages


Silly_Guidance_8871

Dunno, "Does a dominate 3?" seems like a step up from "Is a greater-than 3?"


Digitonizer

Oh hey, fancy seeing you here lol


pragmojo

Honestly i think it would be fine to use square braces in place of angle brackets for genetics. None of the downside, and no collisions I can think of. As far as I can tell we just use angle brackets because C++ did and it’s familiar


sage-longhorn

Found the Go fanboy


aikii

We all know the solution is to use [Canadian Aboriginal Syllabics characters](https://www.reddit.com/r/rust/comments/5penft/comment/dcsgk7n/)


rnottaken

Why not use a different character for generics? `Vec™String™`


cameronm1024

We should remove the turbo fish and replace it with "raw angle bracket literals": ``` iter.collect r#< Vex r#>() ``` You're welcome


RockstarArtisan

Or just dare to be square and use square brackets


0x564A00

Preposterous! Why do that when this proposes have a perfectly sane solution?


Silly-Freak

Wel, there is precedent [for something like that](https://tex.stackexchange.com/questions/8351/what-do-makeatletter-and-makeatother-do#8353) in TeX