LightAndLight / ipso

A functional scripting language.

Home Page:https://ipso.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Field punning for record creation

LightAndLight opened this issue · comments

Example:

let x = 1 in
let y = 2 in
let z = 3 in
{ x, y, z }

should desugar to:

let x = 1 in
let y = 2 in
let z = 3 in
{ x = x, y = y, z = z }

Bump; I found myself expecting this today.