Open mkustermann opened 7 years ago
This test seems to still fail with Fasta.
That would not solve for instance const d = identical("zyz", "z$yz");
(same test).
Updated: Added important "not" in sentence above.
We're currently not evaluating const Type.fromEnvironment (where Type is String, bool, int, etc) during Fasta compilation. This is why we can't solve identical("zyz", "z$yz")
in general.
What is this bug about? As far as I'm concerned, constant folding string literals is "nice to have", not P2.
I guess it depends on how you see it --- string folding might be, but making identical work as expected might not be? Feel free to update the priority though.
The test
language/const_string_test
tests e.g.identical("abcd", "a" "b" "cd"))
. This could be handled in the frontend and makes the flow graph builder simpler./cc @kmillikin & #28263