You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assume :foldable in isuppercase/islowercase for Char (JuliaLang#54346)
With this, `isuppercase`/`islowercase` are evaluated at compile-time for
`Char` arguments:
```julia
julia> @code_typed (() -> isuppercase('A'))()
CodeInfo(
1 ─ return true
) => Bool
julia> @code_typed (() -> islowercase('A'))()
CodeInfo(
1 ─ return false
) => Bool
```
This would be useful in JuliaLang#54303,
where the case of the character indicates which triangular half of a
matrix is filled, and may be constant-propagated downstream.
---------
Co-authored-by: Shuhei Kadowaki <[email protected]>
0 commit comments