Nп/п : 79 из 100
 От   : Anton Ertl                          2:5075/128        30 сен 23 07:00:48
 К    : Marcel Hendrix                                        30 сен 23 10:06:02
 Тема : Re: Why I Don`t Use Else When Programming
----------------------------------------------------------------------------------
                                                                                 
@MSGID: <2023Sep30.090048@mips.complang.tuwien.ac.at>
9a545f6e
@REPLY:
<df97fe87-85eb-41b1-9dc0-976ab791697cn@googlegroups.com> fb2812d6
@REPLYADDR Anton Ertl
<anton@mips.complang.tuwien.ac.at>
@REPLYTO 2:5075/128 Anton Ertl
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID:
<2023Sep30.090048@mips.complang.tuwien.ac.at>
@RFC-References: 1@dont-email.me>
<bb6b5107-0dc3-42a2-a47b-d480c250ee33n@googlegroups.com> <df97fe87-85eb-41b1-9dc0-976ab791697cn@googlegroups.com>
@TZUTC: 0000
@TID: FIDOGATE-5.12-ge4e8b94
Marcel Hendrix <mhx@iae.nl> writes:
>Statistics from the iForth distribution. 
>
>Searching for: IF ( examples, 6908 files )
>Found 37736 occurrence(s) in 1300 file(s), 957 ms
>Searching for: ELSE ( examples, 6908 files )
>Found 7010 occurrence(s) in 1028 file(s), 962 ms
>
>Searching for: IF ( include, 1183 files ) 
>Found 8241 occurrence(s) in 324 file(s), 233 ms
>Searching for: ELSE ( include, 1183 files )
>Found 2393 occurrence(s) in 296 file(s), 240 ms
>
>An IF-THEN statement contains and ELSE in 20 - 25% of cases.

In the Gforth image there are 917 IFs and 347 ELSEs (38%).

- anton
-- 
M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
     New standard: https://forth-standard.org/
   EuroForth 2023: https://euro.theforth.net/2023
--- xrn 10.11
 * Origin: Institut fuer Computersprachen, Technische Universitaet (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх