• 0 Posts
  • 49 Comments
Joined 3 years ago
cake
Cake day: September 2nd, 2023

help-circle

  • Microsoft’s is even worse.

    1. Enter username
    2. Enter password
    3. Click “stay logged in”
    4. Click “log in”
    5. Login successful!
    6. Page reloads to the username prompt
    7. Repeat steps 1-6. Sometimes (but rarely) repeat them multiple times.
    8. Now you’re actually logged in.

    How hard is it to log in the user if the username and password were correct? If Microsoft can not figure out how to do this, why do other random websites work? Do those websites have some arcane knowledge being held away from Microsoft?









  • That’s inside the macro though. Whatever you parse inside the macro is defined by the creator of the macro. The macro invocation itself is defined by the rust language.

    Rust allows you to use any bracket because it doesn’t know what the macro is supposed to do.

    Some macros work like functions:

    println!("Hello world");
    

    Some macros work like array declarations:

    let v = vec![1,2,3];
    

    And some macros work like a code scope:

    select!{
     a => myfunc(),
     b => my_other_func()
    }
    

    Since rust doesn’t know what your macro does, it just lets the user choose whatever the user sees more fitting for that specific macro invocation.










  • There is no saying. I didn’t say “always right”. Notice how I said “sometimes right”.

    Customers are human beings. If I know I’m right (because I can see with my own eyes that the vacuum doesn’t work), and you treat me like that because “whether the vacuum works or not is not a matter of taste” I’m just never going to do business with you again.