# New syntax for the "as" proposal

**URL:** <https://es.discourse.group/t/new-syntax-for-the-as-proposal/705>\
**Category:** 💡 Ideas\
**Tags:** proposal\
**Created:** [March 19, 2021, 12:38pm UTC](https://es.discourse.group/t/new-syntax-for-the-as-proposal/705 "2021-03-19T12:38:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![theScottyJam](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/thescottyjam/32/616_2.png) [@theScottyJam](https://es.discourse.group/u/theScottyJam)\
**Post date:** [March 20, 2021, 8:06pm UTC](https://es.discourse.group/t/new-syntax-for-the-as-proposal/705/4 "2021-03-20T20:06:54Z")

</div>

Ah, whoops. I should have looked closer at your examples @Clemdz - I had thought that when you did `obj.{ a, b } = anotherObj`, that obj was just getting bound to anotherObj, not that it was getting restructured. (meaning, I thought it was literally just a different syntax for the as proposal) I see more similarity now with the restructuring syntax I was proposing in [the object-restructuring thread](https://es.discourse.group/t/object-restructuring-syntax/651).

I think @senocular has a good point though, where I'm not sure how valuable it would be to restructure and destructure the object at the same time, and maybe it would be good to treat this more like an alternative syntax for the "as" proposal.

---

_[View the full topic](https://es.discourse.group/t/new-syntax-for-the-as-proposal/705)._
