# CONSTRUCT Dialect for Objects (Maps?)

**URL:** <https://revolt.metaeducation.com/forum/t/construct-dialect-for-objects-maps/2569>\
**Category:** Dialects/DSLs\
**Created:** [November 27, 2025, 1:11am UTC](https://revolt.metaeducation.com/forum/t/construct-dialect-for-objects-maps/2569 "2025-11-27T01:11:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hostilefork](https://revolt.metaeducation.com/forum/user_avatar/revolt.metaeducation.com/hostilefork/32/421_2.png) [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Post date:** [November 27, 2025, 2:12pm UTC](https://revolt.metaeducation.com/forum/t/construct-dialect-for-objects-maps/2569/2 "2025-11-27T14:12:07Z")

</div>

> [@hostilefork](#):
>
> The syntaxes aren't actually in contention, the same dialect can offer all the choices:
> 
> ```plaintext
> type ('document)
> -or-
> type: 'document
> -or-
> type: ('document)
> 
> ~parent~
> -or- 
> parent: ~ 
> -or-
> parent (~)
> 
> ```

Furthering this dialect... JavaScript has a shorthand, where if you use just a name, you can reference a variable and proxy its value into the object under that name:

```
const name = "Alice";
const age = 30;

// Traditional way
const person1 = {
  name: name,
  age: age
};

// Shorthand property names
const person2 = {
  name,
  age
};

console.log(person1); // { name: 'Alice', age: 30 }
console.log(person2); // { name: 'Alice', age: 30 }

```

Revolt has parts. Can do this too, why not use `@WORD!` (or `@TUPLE!`)?

```
let name: "Alice"
let age: 30

let person: {
  @name
  @age
}

probe person ; &[object! [name: "Alice" age: 30]]

```

(Having the @ symbol for that makes it seem more in proportion to how weird what you're doing is. Plain WORD! for just spec'ing an empty field seems to fit better.)

---

_[View the full topic](https://revolt.metaeducation.com/forum/t/construct-dialect-for-objects-maps/2569)._
