Closed C-BJ closed 2 years ago
Erg prohibits reassignment of variables, but its error handling does not seem to be working well.
Erg prohibits reassignment of variables, but its error handling does not seem to be working well.
If the reassigned value is the same, it will report an error instead of a crash @mtshiba
Even if the resulting substituted values are the same, an error is still generated.
if this is OK,
i = 1
i = 1
rand = pyimport "random"
i = 1
i = rand.randint!(0, 1)
There is a one in two chance that this code must be valid. That is nonsense.
That said, this code should be failed with errors normally without crashing.
Even if the resulting substituted values are the same, an error is still generated.
if this is OK,
i = 1 i = 1
rand = pyimport "random" i = 1 i = rand.randint!(0, 1)
There is a one in two chance that this code must be valid. That is nonsense.
That said, this code should be failed with errors normally without crashing.
Yes, But I'm describing the situation @mtshiba
Yes, I will fix this unintended behavior soon.
The crashing has been fixed, but it still detects extra errors.