Skip to main content
Bluvy Tube
Press Esc to exit fullscreen
Volume m
/
i
Theater mode t
f
/
🤯 (0, 0) matches four cases in this Swift switch. Only one runs. Which? 🧩 switch (x, y) turns two values into a tuple 🎯 case (0, 0) is one point ➖ case (_, 0) is the whole x-axis: _ matches anything 📦 case (-2...2, -2...2) is a box 🧵

Keyboard shortcuts

Space K
Play / pause
← →
Back / forward 5 s
J L
Back / forward 10 s
0–9
Jump to 0%–90% of the video
Home End
Start / end
, .
Previous / next frame (while paused)
< >
Slower / faster
↑ ↓
Volume
M
Mute / unmute
C
Captions
F
Fullscreen
I
Picture-in-picture
T
Theater mode
?
Show this help

🤯 (0, 0) matches four cases in this Swift switch. Only one runs. Which? 🧩 switch (x, y) turns two values into a tuple 🎯 case (0, 0) is one point ➖ case (_, 0) is the whole x-axis: _ matches anything 📦 case (-2...2, -2...2) is a box 🧵

Cane Allesta

Cane Allesta

@caneallesta.bsky.social

Subscribe
0 views Published on 01/12/2026 06:19 1:12
🤯 (0, 0) matches four cases in this Swift switch. Only one runs. Which? 🧩 switch (x, y) turns two values into a tuple 🎯 case (0, 0) is one point ➖ case (_, 0) is the whole x-axis: _ matches anything 📦 case (-2...2, -2...2) is a box 🧵
1 comment
?
✅ Swift runs the FIRST case that matches
🚨 Put (_, 0) before (0, 0) and "origin" never runs
🙈 And the compiler stays silent

💡 Rule: most specific pattern first, catch-all last
View original post on Bluesky
Link copied to clipboard

Sign in

Time to take a break

You've been watching videos for 30 minutes straight: give yourself 5 minutes away from the screen. Stand up, stretch, grab a glass of water… Your videos will be right here when you're back.