3 ms·
This is cool, I love JS syntax hacks. Well done! const { status } = await send(capitalize(greeting) + "!") console.log(status) I find that easy to read, a
by keepamovin 3y ago
This is cool, I love JS syntax hacks. Well done!
const { status } = await send(capitalize(greeting) + "!")
console.log(status)
I find that easy to read, and your pipe operator harder (but still sensible!). I guess that just reflects the backgrounds we come from, people from more functional backgrounds (maybe lisp or Haskell) will find the latter example easier I guess!
- FroLeMageBlanc 3y agoAuthor here. Thanks! Yes I have to confess I have both a Scheme and Elm background ;)