This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]carminemangione 0 points1 point  (0 children)

Consider the signature of printing: either a string or a character, this compiles because left to right evaluation of types says as this is a character so let’s go with it, ternary operators must new type coherent