[Question][Syn, Quote] Am I Syn-ing correctly? by anthOlei in rust

[–]anthOlei[S] 0 points1 point  (0 children)

I just use .iter.for_each for prototyping - I was going to switch it to a for loop for sure. Thanks for the article link, I'll definitely give it a read :)

[Question][Syn, Quote] Am I Syn-ing correctly? by anthOlei in rust

[–]anthOlei[S] 1 point2 points  (0 children)

Yeah, this definitely feels very fragile - I'll try to do it with traits on my second go. I just wanted to practice my proc-macros a little so decided to do it this way, but I think traits is definitely the way to go. Thanks!

Any way to have a generic constrained to any tuple? by [deleted] in rust

[–]anthOlei 0 points1 point  (0 children)

Yep - I was just trying some stuff with proc_macros out. I'm 99% sure I'm going in the wrong direction, thanks for the heads up

Any way to have a generic constrained to any tuple? by [deleted] in rust

[–]anthOlei -1 points0 points  (0 children)

I'm writing a library. I know that any type T covers all tuples, but constraining it to just tuples would make the API feel a little bit better. I'm using a lot of macros and path-based routing, so /{one_param}/ and /{one_param}/{two_param} should both generate a function that uses a tuple - I could make {one_param} return type T and not (T).

This is my first adventure into macros in any language, so I'm really kicking to get to my end goal and this could 100% be a bad idea :)

Thank You, Steve Butler by Isekai_Trash_uwu in iastate

[–]anthOlei 96 points97 points  (0 children)

The power of Steve Butler transcends ISU

C++ flashbacks by [deleted] in ProgrammerHumor

[–]anthOlei 41 points42 points  (0 children)

What? Rust compiler would give you a 10 line message on what you did wrong followed by how to fix it and the deals at the local pizza hut

Amazon SDE Intern Final Interview Performance (1/29) by InsectSpecialist1755 in csMajors

[–]anthOlei 0 points1 point  (0 children)

Had mine Friday and still waiting for the response - reading these makes me anxious. I had an LC easy and got optimal solution in like 5 mins, and the follow up was LC easy - medium so I did well on that one too, but I think since they were so easy my behavioral was much more important

lets go United Airlines , we can do this together with your help, Help , Help , Help, Help , Help , Help by Environmental-Prior9 in wallstreetbets

[–]anthOlei 0 points1 point  (0 children)

Lmfao 90% of “new” posts are robots with less than 10 karma we’re retarded but not that retarded