20 Matching Annotations
  1. Nov 2023
  2. Mar 2023
  3. Sep 2022
  4. Jan 2022
  5. Jun 2021
  6. Apr 2021
  7. Feb 2021
    1. {a: 1, b: 2, c: 3, d: 4} => {a:, b:, **rest} # a == 1, b == 2, rest == {:c=>3, :d=>4}

      equivalent in javascript:

      {a, b, ...rest} = {a: 1, b: 2, c: 3, d: 4}
      

      Not a bad replacement for that! I still find javascript's syntax a little more easily readable and natural, but given that we can't use the same syntax (probably because it would be incompatible with existing syntax rules that we can't break for compatibility reasons, unfortunately), this is a pretty good compromise/solution that they've come up with.

  8. Nov 2020
  9. Oct 2020
  10. Sep 2020