Closed wdanilo closed 1 year ago
@JaroslavTulach to verify if this is still an issue.
Verified in REPL. The problem is fixed, probably by #3949:
enso --repl
> f e = case e of
> _ : Date -> True
> _ -> False
>>> Nothing
> f Date
>>> false
> f (Date.new 1999 12 12)
>>> true
Jaroslav Tulach reports a new STANDUP for yesterday (2023-02-07):
Progress: - Turned performance work into GitHub issues.
Next Day: Move to regex.
This task is automatically imported from the old Task Issue Board and it was originally created by Radosław Waśko. Original issue is here.
When writing
I expect such a branch to match any instance of a Date but not the Date type itself.
i.e. i'd expect
however with the current implementation - both would be true! This is inconsistent with custom defined Enso atoms where it will behave as expected for
I will get
as expected.
I have checked that this is the case for at least Date and Integer types, likely for more.
Here's a more complete repro:
I'm getting:
while I'd expect to always have consistent results regardless of branch ordering here -
_ : Date ->
andDate ->
should be completely distinct branches:Comments:
Discord discussion thread https://discord.com/channels/401396655599124480/1044380778085228564/1044380778085228564 (Radosław Waśko - Nov 21, 2022)