It's odd how lazy evaluation is generally seen as a niche design choice, yet the vast majority of languages treat `foo() || bar()` as short-circuiting.
Wilfred Hughes
3 Comments
@wilfredh This doesn’t seem out of character: when you think about it the statements that comprise a function in an imperative language also “short circuit” too.
@wilfredh If that doesn’t make sense, I mean the metaphor is that each statement is “lazily evaluated” only once control flow hits it, and it might not ever hit it. I think in a sense C is lazily evaluated too; what it lacks is only referential transparency maybe?
@wilfredh (I know this is a ridiculous take in a way, I just mean the sort of lazy evaluation in short circuiting Boolean operators is the same as elsewhere in the language)
Programming is a team activity: the vast majority of projects have multiple contributors. Yet all the films I've seen show a solo programmer at a keyboard.
Have any movies got this right?
Which programming languages are the easiest/hardest to google?
Go (a common word) and Rust (also a computer game) can both be tricky. Yet I've not seen 'rubylang' used to help Ruby searches.
Perhaps a novel word (Kotlin) or a misspelling (Perl) is a better choice for new languages?
Wilfred Hughes
Shared words: seen, choice, yet, languages
Score: 65