Talk:Conditional structures: Difference between revisions

m
 
(2 intermediate revisions by 2 users not shown)
Line 5:
Seriously. This page is gigantic. --[[User:Mwn3d|Mwn3d]] 20:32, 15 September 2009 (UTC)
: The real problem is that there are masses of languages that are participating in this. Most provide just a short answer too; sub-pages are likely to be long. I suppose this is success... —[[User:Dkf|Donal Fellows]] 22:29, 15 September 2009 (UTC)
:: It may be practicable to use conditional transclusion. Specifically, if a page body exceeds a certain size, don't link to it. If it doesn't exceed that size, transclude it. For "print" view, transclude all of it. That cleanly handles everything from User Output to RCSNUSP. Doing the conditionals in wikicode would depend on having a way to measure the size of another page, though. --[[User:Short Circuit|Michael Mol]] 22:59, 25 November 2009 (UTC)
 
== syntax highlighting ==
Line 17 ⟶ 18:
 
: I would support Eriksiers meaning too. It is a boolean choice between one or many paths. (It would also fit most, if not all the examples given). --[[User:Paddy3118|Paddy3118]] 03:10, 7 October 2009 (UTC)
 
:: I have added [[Conditional Structures#conditions without conditions|conditions without conditions]] to the J writeup.
 
:: In J, data selection (which I have illustrated by example) has the same sort of prominence that short circuit condtions have in some other languages. In both cases, we have conditional logic which fits inside expressions. And in both cases we have some potential efficiency gains because we might be avoiding unnecessary computation. But data selection tends to be far more efficient in J than short circuit conditions (and low level mechanisms such as [[wp:Branch predictor|branch predictors]] suggest that this issue might not always be unique to J). [[User:Rdm|Rdm]] 20:57, 25 November 2009 (UTC)
Anonymous user