ds26gte / pyret-lang

The Pyret language.
Other
2 stars 0 forks source link

shadowing behavior should be the default #4

Closed schanzer closed 8 years ago

schanzer commented 8 years ago

For example: (define (f e) e)

ds26gte commented 8 years ago

Fixed in 99eb4b1.

Shadowing behavior is indeed the default. This bug rather had to do with (just) the four constant identifiers {false, true, pi, e} being incapable being used as lexical variables. Now they can be so used.

N.B. null can also be used as lexical variable. empty however cannot: It is a true literal evaluating to itself. Do we want to change the empty literal to something like #empty, with the global variable empty bound to #empty?

schanzer commented 8 years ago

I think this is a good idea. Make it so. :)

ds26gte commented 8 years ago

Made it so in 17370ab.