“Yes, I know the door is locked. I open it anyway.”

Emergency backup Riker deployed! Riker holding a trumpet and playing a sour note

C'mon — you're @programming.dev. You're supposed to know why this is bad.

I'm bringing chili

Genocide or more genocide? Difficult choice…

[-] PoolloverNathan@programming.dev 43 points 1 week ago* (last edited 1 week ago)

The inspector REPL evaluates as a statement-with-value (like eval), so the {} at the beginning is considered an empty block, not an object. This leaves +[], which is 0. I don't know what would make Node differ, however.

Edit: Tested it myself. It seems Node prefers evaluating this as an expression when it can, but explicitly using eval gives the inspector behavior:

[-] PoolloverNathan@programming.dev 50 points 2 weeks ago

Yes, as well as automatically hiding new comments.

[-] PoolloverNathan@programming.dev 57 points 3 weeks ago

checks instance oh that makes sense nvm

[-] PoolloverNathan@programming.dev 67 points 3 weeks ago

A MONAD IS A MONOID IN THE CATEGORY OF ENDOFUNCTORS

22
Nix flakes, now with DLC! (programming.dev)
40
Size: uhh, hmm… (programming.dev)
[-] PoolloverNathan@programming.dev 121 points 1 month ago

Is that TV just a CentOS box running VLC‽

88
77

A picture of a plane taxiing, captioned with "Taylor Swift on her way to the airport".

170
Who needs icons anyways? (programming.dev)
884
submitted 6 months ago* (last edited 6 months ago) by PoolloverNathan@programming.dev to c/assholedesign@lemmy.world
91
view more: next ›

PoolloverNathan

joined 1 year ago