[Grace-core] Class syntax
Kim Bruce
kim at cs.pomona.edu
Mon Jul 22 11:39:19 PDT 2013
I'd rather that we treat the repl specially than allowing multiple definitions in the same scope -- which are virtually always mistakes in regular code. The repl could be in a dialect that would open up new scopes as necessary or would allow replacing old definitions by new (but hopefully only after warning the user).
Kim
On Jul 22, 2013, at 4:36 AM, James Noble <kjx at ecs.vuw.ac.nz> wrote:
> for the repl.
> You need to allow
>
> def x = 3
> ...
> def x = 7
>
> in the same session
> (for some definition of "same")
>
>
> On 22/07/2013, at 12:35 PM, Marco Servetto <marco.servetto at gmail.com> wrote:
>
>> ? redefinition? I'm missing something?
>>
>> On 22 July 2013 23:31, James Noble <kjx at ecs.vuw.ac.nz> wrote:
>>>> Actually, while I'm disappointed, I guess I'm not that surprised that it doesn't work.
>>>
>>> It's not supposed to work - what you're seeing is the "magic" of permitting redefinitions...
>>>
>>> J
>>> _______________________________________________
>>> Grace-core mailing list
>>> Grace-core at cecs.pdx.edu
>>> https://mailhost.cecs.pdx.edu/mailman/listinfo/grace-core
>
More information about the Grace-core
mailing list