Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
unwind
on Sept 25, 2012
|
parent
|
context
|
favorite
| on:
Go Bloviations
I think you're meant to read "trueVal" as "the value I want n to have if expr is true", not as literally true. And vice versa.
jksmith
on Sept 25, 2012
[–]
should be easy enough to do a "choose" stmt in golang, stolen from a business lang called Clarion, but expanded to include closures: n = choose(expr,14,choose(expr2,15,some code that returns something))
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: