POV-Ray : Newsgroups : povray.off-topic : Turing determination : Re: Turing determination Server Time
5 Sep 2024 17:15:42 EDT (-0400)
  Re: Turing determination  
From: andrel
Date: 23 Jul 2009 19:17:59
Message: <4A68EFA7.7000200@hotmail.com>
On 23-7-2009 11:01, Invisible wrote:
> 
> In other words, the type system is an artiface invented to turn an 
> undecidable problem into a decidable one.
> 
> For example:
> 
>   5 + (if 1 == 1 then 0 else "yellow")
> 
> This is type-safe (it produces the answer 5), but most type systems 
> would reject this as ill-typed.
I think there are even languages that would promote the 5 to a string to 
be able to do a string concatenation if you had chosen another boolean 
expression that was false.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.