Created
September 4, 2014 16:39
-
-
Save rwilcox/da5dcd326c767b561559 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myF = () -> | |
true | |
formattedOutput = | |
full_name: "Ryan Wilcox" | |
username: "rwilcox" | |
needs_profile_update: myF() ? "YES" : "NO" | |
# ^^^ generates (_ref = myF()) != null ? _ref : {"YES": "NO"} | |
# Ummm... that's odd... | |
console.log formattedOutput | |
# ######## | |
console.log "####################" | |
formattedOutput = | |
full_name: "Ryan Wilcox" | |
username: "rwilcox" | |
needs_profile_update: if myF() then "YES" else "NO" | |
# ^^^ LITERALLY generates myF() ? "YES" : "NO" | |
console.log formattedOutput |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment