Allan Schougaard: 'Racket Syntax: The Great, the Good and the Back to the Drawing Board'

  Рет қаралды 770

Racket

Racket

Күн бұрын

Пікірлер: 20
@mikedelmonaco6193
@mikedelmonaco6193 3 күн бұрын
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.
@spdegabrielle
@spdegabrielle 3 күн бұрын
I like it. I like the proposal.
@CCcorrodedCrustacean
@CCcorrodedCrustacean 3 күн бұрын
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-o3x
@ascho-o3x 15 сағат бұрын
There are in fact already two libraries the implement a HTML like language: rws-html-template and web-server/templates
@theunbearables
@theunbearables 3 күн бұрын
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
@metalnwood
@metalnwood 3 күн бұрын
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.
@lockbert99
@lockbert99 3 күн бұрын
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!
@tgerdin1
@tgerdin1 3 күн бұрын
In Sweden @ is known as a cinnamon roll.
@peterkerj7357
@peterkerj7357 3 күн бұрын
Va?!
@tgerdin1
@tgerdin1 2 күн бұрын
@ kanelbulle (iaf i Västerås)
@ascho-o3x
@ascho-o3x 19 сағат бұрын
@@tgerdin1 snabel-a in Denmark
@replikvltyoutube3727
@replikvltyoutube3727 20 сағат бұрын
Turn lisp into this popular language called java
@apgwoz
@apgwoz 3 күн бұрын
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-o3x
@ascho-o3x 19 сағат бұрын
Do the location of }s matter?
@apgwoz
@apgwoz 16 сағат бұрын
@ *sigh* - joking or not, if you have to apologize for it ahead of time, it’s probably best not to say it.
@sillystuff6247
@sillystuff6247 3 күн бұрын
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-o3x
@ascho-o3x 18 сағат бұрын
Yeah? Well, you know, that's just like your opinion, man.😊
The State of Racket
31:23
Racket
Рет қаралды 1,3 М.
Poi-Poi-Poi-Poi-Poi-Poi-Po-Pi!! | Baby Zombie vs Baby Herobrine 😁
00:29
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 38 МЛН
HELP!!!
00:46
Natan por Aí
Рет қаралды 42 МЛН
Racket Town Hall
35:12
Racket
Рет қаралды 235
Techniques for Dynamic Tracing by Andrew Werner
27:22
NYC Systems
Рет қаралды 598
Why OCaml
1:06:40
Jane Street
Рет қаралды 121 М.
Charlie Ray: Mutation Testing  Better Than Coverage
29:25
This Single Rule Underpins All Of Physics
32:44
Veritasium
Рет қаралды 4,2 МЛН
Regular expressions as finite automata
28:51
Kay Lack
Рет қаралды 14 М.
Poi-Poi-Poi-Poi-Poi-Poi-Po-Pi!! | Baby Zombie vs Baby Herobrine 😁
00:29