V: ${name.len<5} equals '1'?

Created on 11 Dec 2019  路  5Comments  路  Source: vlang/v

V version:
OS:
https://vlang.io/play
What did you do?

fn main() {
name := 'Bob'
println('Hello, $name! ${name.len<5}') 
}

get result out:

Hello, Bob! 1
Bug Playground Confirmed PR Submitted

Most helpful comment

This was changed recently:

>>> println(true)
true
>>>

All 5 comments

In this case true is printed as 1. Good find.

In this case true is printed as 1. Good find.

true/ false are always printed as 1 and 0 for me...

This was changed recently:

>>> println(true)
true
>>>

could be closed, or?

Yea not sure why I didn't close it back in December :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ArcDrake picture ArcDrake  路  3Comments

jtkirkpatrick picture jtkirkpatrick  路  3Comments

choleraehyq picture choleraehyq  路  3Comments

oleg-kachan picture oleg-kachan  路  3Comments

clpo13 picture clpo13  路  3Comments