Y
Hacker News
new
|
ask
|
show
|
jobs
by
mr_00ff00
255 days ago
How does this work for dynamic casting? Say like if an age was submitted from a form?
I assume it’s a runtime error or does the compiler force you to handle this?
1 comments
ajdude
255 days ago
If you're using SPARK, it'll catch at compile time if there's ever a possibility that it would fit within that condition. Otherwise it'll throw an exception (constraint_error) during runtime for you to catch.
link