How would I go about implementing ValidBigDecimal
for String
?
#191
-
Or is there something of the sort in the library already? I mostly want to translate |
Beta Was this translation helpful? Give feedback.
Answered by
Iltotore
Nov 6, 2023
Replies: 1 comment 3 replies
-
Update: I tried writing a custom constraint, but that doesn't work because try-catch cannot be inlined. Neither can the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want to make your constraint usable at compile-time, you will probably have to use a macro.
You can look into
io.github.iltotore.iron.constraint.string
for examples.PS: thank you for the bump, I forgot about your thread 😅