qorf / quorum-language

The primary repository for the Quorum Programming Language
BSD 3-Clause "New" or "Revised" License
15 stars 6 forks source link

Casting to boolean gives different output in QS vs Web #10

Closed GabeContra closed 2 years ago

GabeContra commented 2 years ago

For this code here:

text words = "here's some text"
boolean bool = cast(boolean, words)
output bool

When running this in Quorum Studio you will get a cast error saying you can't convert the string to a boolean but when running this on the web it outputs false. The version on the web should probably also tell you that it's a cast error.

andreas-stefik commented 2 years ago

Fixed