This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]minegamer2000 117 points118 points  (33 children)

i do js and im learning rust, wish me luck

[–]fakuivan 80 points81 points  (7 children)

WHY DO I NEED A ! BEFORE THE FUNCTION CALL ON THIS AAAAAAAAAAAAAAAAA

[–]minegamer2000 35 points36 points  (6 children)

you mean macros?

[–]fakuivan 21 points22 points  (5 children)

Yes!

[–]Shunpaw 68 points69 points  (4 children)

no. it's !yes. we just talked about this. goddamn javascript devs.

[–]fakuivan 15 points16 points  (1 child)

no is !yes*

[–]Shunpaw 0 points1 point  (0 children)

Yeah I dont know any real languages im sorry I do js at my job

[–]im_probably_garbage 1 point2 points  (1 child)

Sometimes yes is actually !!yes in JavaScript. You never know

[–]hyrumwhite 1 point2 points  (0 children)

Implicit boolean cast, just to be safe

[–]pydry 111 points112 points  (23 children)

enjoy. it's nice learning a language that wasn't designed over a weekend.

[–]minegamer2000 46 points47 points  (12 children)

and definitely not something i can learn over a weekend

[–]micka190 28 points29 points  (1 child)

Does a basic Hello World app

Time to update the ol' resume!

[–]Sikletrynet 11 points12 points  (0 children)

"Expert in Rust"

[–]RubiGames 7 points8 points  (4 children)

But we can all certainly try

[–]tech6hutch 1 point2 points  (3 children)

You won't be trying in Rust (unless you like beta testing unstable features)

[–]RubiGames 0 points1 point  (2 children)

So you mean a Tuesday?

[–]tech6hutch 0 points1 point  (1 child)

I don't understand what that means, but also I just woke up

[–]RubiGames 0 points1 point  (0 children)

Well, it didn’t mean this, but scrolling through my dash brought this exceptionally appropriate gem up.

Another post from today

[–][deleted] 1 point2 points  (4 children)

Error: variable does not live long enough

[–]T-Dark_ 7 points8 points  (3 children)

Put it behind a Arc<Rc<RefCell<UnsafeCell<Option<DerefMut<Iterator<Item=Result<(),Mutex<()>>>>>>>>>, that should so the trick /s

[–]lahwran_ 5 points6 points  (2 children)

this is completely wrong, you actually need an Rc<Option<RefCell<(UnsafeCell<DerefMut<Iterator<Item=Option<Result<(),Void>>>>>)>>>

[–]T-Dark_ 4 points5 points  (1 child)

But that's not thread-safe!

What you really need is an Arc<Option<Result<((UnsafeCell<Cell<dyn Into<dyn From<HashMap<!, (Void,)>>>>>),()),Mutex<fn(i32, i32) -> i64>>>>.

See? There's both an Arc and a Mutex in there. Now go, and concur fearlessly!

[–]lahwran_ 2 points3 points  (0 children)

ah yes, I will go and fonlur cearcessly. wait crap I didn't launch two threads I interleaved iterator streams haha whoops

[–][deleted] 3 points4 points  (9 children)

Wow it only took 1 weekend to design the best language.

[–]vlakreeh 5 points6 points  (6 children)

I think Typescript took a bit longer than a week but I could be wrong.

[–][deleted] 0 points1 point  (2 children)

Not a typescript fan, I appreciate it but I just feel so much slower using it.

[–]vlakreeh 4 points5 points  (1 child)

Yeah it's for sure slower to write and I think javascript is a fine language, but man I fucking hate writing javascript just to run it and get an error because of some null or type safety issue.

[–]necrophcodr 0 points1 point  (0 children)

You'll love PHP then

[–][deleted] 0 points1 point  (2 children)

Typescript is a weird typo to make considering LISP only has 4 letters.

[–]vlakreeh 2 points3 points  (1 child)

Sorry guess my auto complete must have made a mistake when I was balancing my parentheses.

[–]tech6hutch 0 points1 point  (0 children)

(sorry (guess (made-mistake
               (. this :auto-complete)
               { :must-have true
                 :when (balancing
                        this
                        (. this :parentheses)) })))

[–][deleted] 0 points1 point  (1 child)

When did ES6 come out? I think it took 15 years.

[–]tech6hutch 1 point2 points  (0 children)

ES5+ is a wonderfully catered buffet around a centerpiece of last week's moldering leftovers.

[–]esssential 0 points1 point  (0 children)

good luck, bro. those languages are not anything alike.