I'm experimenting with #Rust again, and my eyes always bleed with the "lifetime annotation syntax" - why does it have to use an apostrophe 😩 .

&'a mut i32

fn longest<'a>(x: &'a str, y: &'a str) -> &'a str {

impl<'a> System<'a> for LeftWalker {
type SystemData = (ReadStorage<'a, LeftMover>,
WriteStorage<'a, Position>);

But this time I'll try not to rage quit in digust again. I'll stick until this experiment ends. #rustlang

@alfredbaudisch idk either. maybe some other char like ^ could've been used and would've probably been better, but i ended up getting used to the apostrophe after some time so its fine to me now :p

@TudbuT The `^` character conveys the idea of pinning and trap, which matches the idea of lifetime annotations.

Elixir has a character named pin and it is ^: https://elixir-lang.org/getting-started/pattern-matching.html#the-pin-operator

The same with Ruby.

' is universally representative of characters and strings, so that's why it's so ugly to see &'a for example.

Pattern matching

Website for Elixir

elixir-lang.github.com
@alfredbaudisch @TudbuT in lisp it has a different meaning :P
But besides on a German iso Keyboard ^ is on a dead key so don't know if that would've been such a good choice tbh