Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 6: Control Flow #22

Open
sbromberger opened this issue Jan 14, 2015 · 2 comments
Open

Chapter 6: Control Flow #22

sbromberger opened this issue Jan 14, 2015 · 2 comments

Comments

@sbromberger
Copy link

"Value truthiness" - everything here is correct, but perhaps this should be explained:

julia> true * 6
6

julia> true + 8
9

julia> false + 8
8

julia> true + 64.7
65.7

julia> 6 + (true)im
6 + 1im

(That is, true evaluates in numerical contexts to 1, and false to 0.)

@chrisvoncsefalvay
Copy link
Owner

Thanks! I'll add it.

@alemelis
Copy link
Contributor

The last example for continue in a while-loop is not finished. The last sentence hangs incomplete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants