I like the closing paren suggestion, but not because of readability. I think proper indentation makes it obvious enough where the `for` ends and you don't need to worry about which parens match to which. My main reason for liking it is because of git diffs. When you add a new sub-expression to the end of a multi-line expression like a `define` or a `for`, the git diff should be just adding a new line. But since the close parens are no longer on what used to be the last expression, you get a 2-line diff with a modification. It's a small thing, but it makes reading diffs a little slower because it's not always obvious whether the now second-to-last expression actually changed or it's just the closing parens.
@spdegabrielle3 күн бұрын
I like it. I like the proposal.
@CCcorrodedCrustacean3 күн бұрын
I don't care that much about the other points, but I can't agree more that the indentation style is a pain. I'm pretty sure people who complain about 'too many parentheses' are in fact bothered by not being able to see matching parens immediately. This style also makes it more trouble than it's worth to edit lists of arguments because the first element is on the same line as the head, and the last has all the closing parentheses after it, so they can't be moved or deleted as a line. I also find it annoying that the indentation width varies with the length of the head, which can eat up horizontal space very quicly, leading to wrapped or truncated lines which are a pain to read.
@ascho-o3x15 сағат бұрын
There are in fact already two libraries the implement a HTML like language: rws-html-template and web-server/templates
@theunbearables3 күн бұрын
coming from other languages I agree. Going beyond naming, capital letter class/types make it easy to see what it is at a glance, and I didn't realize how easy matching braces could get in s-expression based languages. Maybe there will be an autoformatter that can do this for you
@metalnwood3 күн бұрын
When the topic of indentation with parens comes up, semi frequently, I have to agree based on my experience that it clicks and becomes natural and you get very used to the structure of lisp. So I really don't believe that the messy representation of lisp in the 'prickly' way is required. It may help some people new to the language but assuming that they become proficient they will also become proficient in working with the structure of lisp and they will start to read it more naturally. It will be other areas of lisp that have people leave the language before they are proficient in it, not the parens.
@lockbert993 күн бұрын
I was doing that matching paren style in Emacs Lisp code and I told a co-worker about it (who was not a Lisp user) and he gave me some strong negative reaction. And that included going against the Lisp Gods or something similar. And I have felt guilty about doing it ever since and try and avoid it. Thanks for showing that!
@tgerdin13 күн бұрын
In Sweden @ is known as a cinnamon roll.
@peterkerj73573 күн бұрын
Va?!
@tgerdin12 күн бұрын
@ kanelbulle (iaf i Västerås)
@ascho-o3x19 сағат бұрын
@@tgerdin1 snabel-a in Denmark
@replikvltyoutube372720 сағат бұрын
Turn lisp into this popular language called java
@apgwoz3 күн бұрын
I can’t imagine a better way to make people ignore the rest of the great points than to bring up a “tabs vs spaces” argument. Closing parentheses location doesn’t matter, but they definitely always belong next to other closing parens. :)
@ascho-o3x19 сағат бұрын
Do the location of }s matter?
@apgwoz16 сағат бұрын
@ *sigh* - joking or not, if you have to apologize for it ahead of time, it’s probably best not to say it.
@sillystuff62473 күн бұрын
the dying scala language is "a better java than java"? scala is not even a top 20 language on any major programming language survey/index. no new major apps or companies are built around scala. real-world programmers avoid scala because scala is designed to confuse.
@ascho-o3x18 сағат бұрын
Yeah? Well, you know, that's just like your opinion, man.😊