Nп/п : 85 из 100
 От   : Ruvim                               2:5075/128        30 сен 23 10:26:32
 К    : Marcel Hendrix                                        30 сен 23 13:28:02
 Тема : Re: Why I Don`t Use Else When Programming
----------------------------------------------------------------------------------
                                                                                 
@MSGID: 1@dont-email.me> 7006a4fd
@REPLY:
<df97fe87-85eb-41b1-9dc0-976ab791697cn@googlegroups.com> fb2812d6
@REPLYADDR Ruvim <ruvim.pinka@gmail.com>
@REPLYTO 2:5075/128 Ruvim
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: 1@dont-email.me>
@RFC-References: 1@dont-email.me>
<bb6b5107-0dc3-42a2-a47b-d480c250ee33n@googlegroups.com> <df97fe87-85eb-41b1-9dc0-976ab791697cn@googlegroups.com>
@TZUTC: 0000
@PID: Mozilla/5.0 (Windows NT 10.0; rv:102.0)
Gecko/20100101 Firefox/102.0
@TID: FIDOGATE-5.12-ge4e8b94
On 2023-09-29 19:28, Marcel Hendrix wrote:
> 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 SP-Forth/4 distribution (all the repository, many authors):
   Search for " IF\b"
     11205 matches
     1263 files contained matches
     2421 files searched
   Search for " ELSE\b"
     3868 matches
     853 files contained matches
     2421 files searched
   -- 35%

In the sources of SP-Forth/4 only
   Search for " IF\b"
     1301 matches
     51 files contained matches
     85 files searched
   Search for " ELSE\b"
     184 matches
     40 files contained matches
     85 files searched
   -- 14%



--
Ruvim

--- Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Firefox/102.0
 * Origin: A noiseless patient Spider (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    
                                                                                
В этой области больше нет сообщений.

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