3 ms·
how many branches/how much depth in a ternary statement would you consider to be too many/too much? Is there never going to be any level of depth in a ternary
by bryanrasmussen 8y ago
how many branches/how much depth in a ternary statement would you consider to be too many/too much?
Is there never going to be any level of depth in a ternary statement which you will think is perhaps too great, and want to switch to some more verbose syntax?
- whatshisface 8y agoA lisper would say that there is absolutely no limit, and that in fact all programs should be structured like that.
- bryanrasmussen 8y agoThat's not what it looks like to me https://yoo2080.wordpress.com/2014/07/04/it-is-not-hard-to-read-lisp-code/ https://yoo2080.wordpress.com/2014/07/04/it-is-not-hard-to-r...
- brlewis 8y agoTo be clear, a lisper would not solve the problem by switching to a more verbose syntax, but that doesn't mean no depth is too deep. Breaking a big, deeply-nested function up into smaller ones is a perfectly lispy thing to do.
- oblio 8y agoAnd that's why lispers are at most 1% of the total number of programmers out there, 50+ years after the language was invented. You could say that most programmers are crap, but those crap programmers seem to make the world work, so they must be doing something right :-)
- LandR 8y ago> You could say that most programmers are crap Because they are > but those crap programmers seem to make the world work For certains value of "work". Most software is crap too and it's getting worse not better.
- oblio 8y agoYet it makes people's live better day by day... I feel that as insiders we don't really realize that software works quite well compared to many every day things.