Open pekkaklarck opened 1 year ago
Signatures at Environment.java are:
Object getAt(int distance, String name) void assignAt(int distance, Token name, Object value)
Using either String or Token as the type of name would fix the inconsistency. Using Token would also be consistency with get and assign which actually need a Token. Both getAt and assignAt would be fine also with String.
String
Token
name
get
assign
getAt
assignAt
Signatures at Environment.java are:
Using either
String
orToken
as the type ofname
would fix the inconsistency. UsingToken
would also be consistency withget
andassign
which actually need aToken
. BothgetAt
andassignAt
would be fine also withString
.