-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,7 +71,7 @@ macro call(expr::Expr) | |
end | ||
|
||
#Version 0.6 downwards | ||
function construct_case_statement(lines::Vector, ::Type{Val{false}}) | ||
function construct_case_statement(lines::Vector, ::Type{Val{true}}) | ||
failproof(s) = s | ||
failproof(s::Char) = string("'",s,"'") | ||
line = lines[1] | ||
|
@@ -87,7 +87,7 @@ function construct_case_statement(lines::Vector, ::Type{Val{false}}) | |
end | ||
|
||
#Version 0.6 upwards | ||
function construct_case_statement(lines::Vector, ::Type{Val{true}}) | ||
function construct_case_statement(lines::Vector, ::Type{Val{false}}) | ||
failproof(s) = s | ||
failproof(s::Char) = string("'",s,"'") | ||
line = lines[1] | ||
|
@@ -105,7 +105,7 @@ end | |
""" | ||
Transforms the custom case expression to a string representing the equivalent if-then-else block of code. | ||
""" | ||
construct_case_statement(lines::Vector) = construct_case_statement(lines, Val{VERSION>v"0.6.0"}) | ||
construct_case_statement(lines::Vector) = construct_case_statement(lines, Val{VERSION>=v"0.6.0-dev"}) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
lopezm94
Author
Owner
|
||
|
||
|
||
""" | ||
|
should be more specific about version cutoffs like this - what are you trying to avoid?