586
With PieMixin (lemmy.world)
submitted 11 months ago by mod_pp@lemmy.world to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] jana@leminal.space 3 points 11 months ago* (last edited 11 months ago)

But generic type syntax is a feature exclusive to Typescript while typeof is a JavaScript thing. You'd never get Pie[Pie[T]] as a result from a typeof check. (Please excuse the square brackets; seems like the markdown parser here isn't quite right and it keeps messing up the angle brackets)

Also, it's typeof foo not typeof(foo) in js

this post was submitted on 28 Nov 2023
586 points (97.7% liked)

Programmer Humor

32386 readers
792 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS