Jason Knight
1 min readSep 2, 2020

--

Completely legible if you leverage whitespace and understand what commas and semi-colons mean.

Also Pascal, Modula 2, Ada, and possibly even PHP programmers are laughing at you.

Because if this:

let
profile = ['bob', 34, 'carpenter'],
[name, age, job] = profile;

Is “not readable” then one might want to reconsider programming for a living. Particularly given the sheer volume of “real” programming languages that use this syntax exclusively. As opposed to hack-filled kludgy toys like JavaScript with its lassez-faire attitude towards everything.

--

--

Jason Knight
Jason Knight

Written by Jason Knight

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse

Responses (1)