Re: [m-users.] Coding style
Zetian Lin <[email protected]> Fri, 23 Jan 2026 21:25:02 +0800
| Newsgroups | gmane.comp.lang.mercury.general |
|---|---|
| Message-ID | <TY7PR01MB137071A28E5EA35D1A3324712F094A@TY7PR01MB13707.jpnprd01.prod.outlook.com> |
--===============2679205122827815702== Content-Type: multipart/alternative; boundary="------------TJqOwlYW9BNSRozoUGUEISjS" Content-Language: en-US --------------TJqOwlYW9BNSRozoUGUEISjS Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I'm used to emacs w/ line wrapping turned on so extra-long lines probably feel less like a serious problem to me than other people... that said, I try to control the line width to under 100 columns in my code. (I do make exceptions for certain cases e.g. in purely templating works where it's clear that you're just appending strings.) Cheers, Z Lin On 1/21/26 14:15, Ralph Becket wrote: > Hi everybody, > > > Happy New Year! > > About twenty years back, when I left Mercury to start in mainstream > commercial programming, monitors were a lot narrower. There was a > strong feeling then that 80 columns was the Right and Proper Line > Length. Nowadays, of course, monitors are much more generous. While > I reject uncontrolled line lengths, 80 columns seems painfully tight. > (I think the Linux developers moved away from this some years ago). > That said, when (back) in Rome, do as the Romans do. So: what's the > modern community position on this? > > Cheers, > Ralph > > _______________________________________________ > users mailing list > [email protected] > https://lists.mercurylang.org/listinfo/users --------------TJqOwlYW9BNSRozoUGUEISjS Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <p>I'm used to emacs w/ line wrapping turned on so extra-long lines probably feel less like a serious problem to me than other people... that said, I try to control the line width to under 100 columns in my code. (I do make exceptions for certain cases e.g. in purely templating works where it's clear that you're just appending strings.)<br> <br> Cheers,</p> <p>Z Lin</p> <p><br> </p> <p><br> </p> <div class="moz-cite-prefix">On 1/21/26 14:15, Ralph Becket wrote:<br> </div> <blockquote type="cite" cite="mid:MEYP282MB31218891C2571C0B6F528F02A596A@MEYP282MB3121.AUSP282.PROD.OUTLOOK.COM"> <style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof"> Hi everybody,</div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof"> <br> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof"> <br> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof"> Happy New Year!</div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof"> <br> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof"> About twenty years back, when I left Mercury to start in mainstream commercial programming, monitors were a lot narrower. There was a strong feeling then that 80 columns was the Right and Proper Line Length. Nowadays, of course, monitors are much more generous. While I reject uncontrolled line lengths, 80 columns seems painfully tight. (I think the Linux developers moved away from this some years ago). That said, when (back) in Rome, do as the Romans do. So: what's the modern community position on this?</div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof"> <br> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof"> Cheers,</div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof"> Ralph</div> <br> <fieldset class="moz-mime-attachment-header"></fieldset> <pre wrap="" class="moz-quote-pre">_______________________________________________ users mailing list <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> <a class="moz-txt-link-freetext" href="https://lists.mercurylang.org/listinfo/users">https://lists.mercurylang.org/listinfo/users</a> </pre> </blockquote> </body> </html> --------------TJqOwlYW9BNSRozoUGUEISjS-- --===============2679205122827815702== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KdXNlcnMgbWFp bGluZyBsaXN0CnVzZXJzQGxpc3RzLm1lcmN1cnlsYW5nLm9yZwpodHRwczovL2xpc3RzLm1lcmN1 cnlsYW5nLm9yZy9saXN0aW5mby91c2Vycwo= --===============2679205122827815702==--