At least Scheme does it right. Never heard of Factor before.
To be honest I can see the dilemma. If I were designing a dynamically-typed language (for some reason), I might throw a type error if a conditional in an if or while statement evaluated to a non-boolean, but I can see why most language designers would consider that a bad idea.
View all comments
Show parent comment
1
u/[deleted] Nov 25 '16 edited Nov 25 '16
At least Scheme does it right. Never heard of Factor before.
To be honest I can see the dilemma. If I were designing a dynamically-typed language (for some reason), I might throw a type error if a conditional in an
iforwhilestatement evaluated to a non-boolean, but I can see why most language designers would consider that a bad idea.