DylanSp / wheel-lang

A small toy imperative language (with some OOP features) for demonstrating and practicing language design/implementation.
MIT License
14 stars 0 forks source link

Allow assigning in declaration #24

Closed DylanSp closed 4 years ago

DylanSp commented 4 years ago

Allow let x = 1;; make this syntactic sugar for let x; x = 1;.

DylanSp commented 4 years ago

Make this mandatory, so each variable acquires a definite type on initialization, which can't change?