Getting a subset of properties from an object with destructuring and the spread operator - Go Make Things: https://gomakethings.com/getting-a-subset-of-properties-from-an-object-with-destructuring-and-the-spread-operator/
Conversation
Notices
-
Adrian Cochrane (alcinnz@floss.social)'s status on Saturday, 21-Jan-2023 02:45:15 JST Adrian Cochrane -
Adrian Cochrane (alcinnz@floss.social)'s status on Saturday, 21-Jan-2023 03:57:47 JST Adrian Cochrane @paoloredaelli Reminds me of Haskell's pattern-matching, though that's closer to machine language due to the datamodel and more powerful. Since it also serves as the language's most fundamental controlflow construct!
In conversation permalink -
Paolo Redaelli (paoloredaelli@mastodon.uno)'s status on Saturday, 21-Jan-2023 03:57:48 JST Paolo Redaelli @alcinnz
That's cool.
I just wonder if those who use #JavaScript realise how distant such a syntax is from actually #assemblylanguage and therefore 'potentially #inefficient'.In conversation permalink
-