kyleect / locks

A toy language branched from Lox to learn language implementation and tooling. Forked from loxcraft
https://kyleect.github.io/locks/#/docs
MIT License
0 stars 0 forks source link

Function's with expression statement body might need to switch from `=` to `=>` #123

Closed kyleect closed 9 months ago

kyleect commented 9 months ago

Current syntax:

fn sum(a, b) = a + b;

This will become ambiguous with function expressions (#16)

let sum = fn (a, b) = a + b;

This is slight ambiguous to parse versus

let sum = fn (a, b) => a + b;