Deutsch English Français Italiano |
<22cd484ba1e5ea01f89a4997d16103e07d4069b0@i2pn2.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: fir <fir@grunge.pl> Newsgroups: comp.lang.c Subject: Re: on allowing "int a" definition everywhere Date: Tue, 27 Aug 2024 13:56:47 +0200 Organization: i2pn2 (i2pn.org) Message-ID: <22cd484ba1e5ea01f89a4997d16103e07d4069b0@i2pn2.org> References: <afdfe7c37c6ad739fd82c7ec0587b82e0963fce2@i2pn2.org> <va3n09$3nnl8$1@dont-email.me> <f693bfded5f8fec712a445d88ebe34419e0f7072@i2pn2.org> <vajt3u$2so1b$2@dont-email.me> <7ea05965a67fa09d4ebd0b6ec53109dcb0b12f76@i2pn2.org> <3775b5abd14443f89852e05177a44bd72585cbdd@i2pn2.org> <4c7a695b1b755393162a1ae36ea6306760ffe949@i2pn2.org> <6c3ace23167948673b9d9314caeaf86ab9c2ffd6@i2pn2.org> <178cc83837030c1ac9ff3e06d703d9c20a83fb96@i2pn2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 27 Aug 2024 11:56:51 -0000 (UTC) Injection-Info: i2pn2.org; logging-data="4092919"; mail-complaints-to="usenet@i2pn2.org"; posting-account="+ydHcGjgSeBt3Wz3WTfKefUptpAWaXduqfw5xdfsuS0"; User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24 In-Reply-To: <178cc83837030c1ac9ff3e06d703d9c20a83fb96@i2pn2.org> X-Spam-Checker-Version: SpamAssassin 4.0.0 Bytes: 2923 Lines: 82 fir wrote: >>>> 10' print((x 0)++) >>>> >>>> where x 0 is initialisation of int x to zero >>>> >>>> >>> >>> overally not bad, i could somewhat accept that loop >>> (yu wouldnt belive how hard is come to that syntax conclusions, >>> literally takes years, and not 5 years more like 15) >>> >>> one of the worst things is find good function definition but at least this 10' loop proves consciencity or how it is caled (being short) its possible right now i think if function maybe shouldnt note ret values in header (?) this is by analogy for structure s {} is structure and f {} is function (its the same bcouse structure can have data fields and function can have code elements - they bot may have mix so if so if s { float x,y,z } not return values so function maybe also should not tyopu will nedd a keyword in function body though like res/result or return s { result float x,y,z } it could also define something like input maybe s { input int a; result int b; } x; x = 19; //comes into e int y = x; //b comes here or s { input int a; b=0a; result int b; } x; print( x(80)) //outs -80 i dont know if this is reasonable also idea is to maybe turn "int" and "float " into runes int should be "runic" I and float should be runic F so foo(int a, int b, float c) {} can be written foo aI bI cF {} where I F are not normal but runic - this makes pleasant short and clarifies things but im not sure if this is finally godd - but worth consideration