mfichman / jogo

High(er) performance compiled programming language with clean, powerful syntax
MIT License
6 stars 1 forks source link

Declarations vs. assignments #34

Closed mfichman closed 12 years ago

mfichman commented 13 years ago

Some places should have declaration semantics rather than declaration-assignment semantics. For instance, let expressions:

let a = "hello" {
    ...
}

The above should always define a new variable a. This also arises with local functions:

test() {
   ...
}

This should always declare a new function variable.