Optional Chaining vs Null Coalescing: Null Safety Battle

JavaScript's ?. operator vs PHP's ?? operator. Which language handles null/undefined more elegantly? This comparison is INSANE!

#javascript #php #javascriptvsphp #optionalchaining #nullcoalescing #nullsafety #programmingcomparison #codecomparison #javascripttricks #phptricks #syntaxcomparison #viralcoding

https://www.youtube.com/watch?v=E4yYA9FRBXU

Optional Chaining vs Null Coalescing: Null Safety Battle #viralcoding

YouTube

Optional Chaining vs Try-Except: Null Safety Battle

JavaScript's ?. operator vs Python's try-except. Which language handles null/undefined more elegantly? Mind = blown!

#javascript #python #javascriptvspython #optionalchaining #nullsafety #errorhandling #programmingcomparison #codecomparison #javascripttricks #pythontricks #syntaxcomparison #viralcoding

https://www.youtube.com/watch?v=75DG9QlcvFM

Optional Chaining vs Try-Except: Null Safety Battle #pythontricks

YouTube

Null Coalescing vs Optional Chaining: Null Safety War

PHP's ?? operator vs JavaScript's ?. operator. Which language handles null/undefined more elegantly? This comparison is INSANE!

#php #javascript #phpvsjavascript #nullcoalescing #optionalchaining #nullsafety #programmingcomparison #codecomparison #phptricks #javascripttricks #syntaxcomparison #viralcoding

https://www.youtube.com/watch?v=iC8vLJnRUHk

Null Coalescing vs Optional Chaining: Null Safety War #JavaScript

YouTube

Optional Chaining ?. vs Null Coalescing ??: GAME CHANGER!

JavaScript's ?. operator vs PHP's ?? operator - which saves more lines of code? INSANE!

#javascript #php #jsvsphp #optionalchaining #nullcoalescing #nullsafeoperator #php8 #es2020 #viralcoding #modernjavascript #syntaxcomparison #mindblown

https://www.youtube.com/watch?v=7FcbUHkVC1s

Optional Chaining ?. vs Null Coalescing ??: GAME CHANGER! #PHP

YouTube

#TIL #JavaScript #OptionalChaining "short circuits" the rest of the evaluation so you can safely write `a?.b.c()` (no need for `a?.b?.c()`).

Personally I find it kind of confusing that introducing parens or a variable changes behavior, but I can see the reasoning behind it.

https://github.com/tc39/proposal-optional-chaining/issues/3

"Short-circuiting" feature · Issue #3 · tc39/proposal-optional-chaining

In this proposal, as the explainer says, a?.b.c().d // undefined if a is null/undefined The "short-circuiting" semantics received some criticism at the previous TC39 meeting where the proposal was ...

GitHub