2
jestdotty
88d

tried to frustratingly google "how to make rust code not ugly", ended up here: https://github.com/koute/stdweb/...

nevermind

inb4 I redesign everything for the 6th time

Comments
  • 2
    geez spent 4 minutes changing my code to something dumb and it works and passes the tests but I'm scared because what the fuck did I just write

    God why
  • 3
    *removes the Todo comments / documentation*

    there is literally no point
  • 2
    you try making promises in a statically typed language, fuck

    everybody else gave up

    mine works and has performance unlike the others

    it's just

    fucking horrific looking
  • 1
    If in doubt, monads.
  • 0
    @atheist I can't say monads with a straight face.
  • 2
    Do you have to use rust? It doesn’t seem that you enjoy it much at all.
  • 1
    Awesome! Can you show some syntax on how to use it? Is it kinda like in JavaScript?
  • 1
    The awful thing is this lifetime annotations. It should have been done another way.
  • 0
  • 0
    @jestdotty i don't know anything about Rust but is this normal to have in Rust? I'm failing to get the promise part out of your code :( I have no idea if you're showing me the source or the way how it must be used. That's frustrating. Maybe I should do Rust basics tutorial

    }));

    }

    }

    }

    }));

    }

    rx

    }

    }
Add Comment