I'm new to Cairo and I want to know what is the difference when I write let x = 1; and tempvar x = 1;. Is there any difference in Cairo Lang between let and tempvar?
Cairo: let vs tempvar what is the difference?
88 views Asked by QQQ At
1
Yes, there's a difference. The keyword
letcreates a reference that's resolved by the compiler whiletempvaractually stores the variable in the stack using a specialized register called theappointer. You can find more information about it here