3 ms·
Ouch! I checked the transpilation to Python, and at the very beginning I see: # === WAX Standard Library BEGIN === def w_arr_remove(a,i,n):del a[i:i+n]
by Etherlord87 3y ago
Ouch! I checked the transpilation to Python, and at the very beginning I see:
# === WAX Standard Library BEGIN ===
def w_arr_remove(a,i,n):del a[i:i+n]
def w_slice(a,i,n):return a[i:i+n]
def w_map_get(m,k,d):
try:return m[k]
except:return d
def w_map_remove(m,k):
try:del m[k]
except:pass
# === WAX Standard Library END ===
catching all errors is bad because you can catch keyboard interrupts or similar messages telling the program to end. It seems in this case it should be `except KeyError`, or better yet, for `w_map_get` it could be `return m.get(k, d)`.