Join Slack
Powered by
For example, what type should a compiler infer for...
# announcements
c
cedric
03/17/2016, 5:52 AM
For example, what type should a compiler infer for the expression
if (false) 0 else ""
? Most compilers will say
Any
while humans would expect the compiler to say
String
. It's very, very hard for a compiler to venture too much into runtime analysis.
3
Views
Open in Slack
Previous
Next