4 ms·
Need a dialect without using bracket.
by revskill 2y ago
Need a dialect without using bracket.
- Zambyte 2y agoThere is this: https://srfi.schemers.org/srfi-119/srfi-119.html https://srfi.schemers.org/srfi-119/srfi-119.html
- apgwoz 2y agoEveryone forgets about Dylan. (https://en.wikipedia.org/wiki/Dylan_(programming_language)?wprov=sfti1#Syntax https://en.wikipedia.org/wiki/Dylan_(programming_language)?w...)
- rscho 2y agoPeople complaining about parens/brackets in lisps have never really used structural editing. Change my mind!
- wavemode 2y agoParentheses in lisp are a lot like significant indentation (Python, Haskell, etc), in that people tend to complain about it "from afar". It is only once they start actually using the language to develop something nontrivial, that they realize that you quickly stop noticing the syntax entirely.
- frou_dh 2y agoI basically agree with you, however thought the following was an interesting idea about it perhaps not always being that simple: https://news.ycombinator.com/item?id=33166116 https://news.ycombinator.com/item?id=33166116
- cageface 2y agoAfter 20 years of using python I still think significant whitespace is a flaw. It saves a little bit of typing in exchange for a lot of ambiguity.
- xigoi 2y agoThere is no ambiguity with significant whitespace.
- Out_of_Characte 2y agoThere is, four abstractions down,my comment gets squished as a sardine
- zelphirkalt 2y agoProblem is always when you need to move code, select/highlight code, paste code, navigate code, and so on. With clear start and end markers like open and close parentheses or like "begin" and "end" in other languages, that problem does not even exist.
- xigoi 2y agoThose actions have never been a problem for me. Maybe get a better editor?
- zelphirkalt 2y agoBasically, you are confirming, what the original comment said. I now strongly suspect, that you have never used structured editing, which is where the issues with Python syntax are. Where paredit for Python?
- xigoi 2y agoWhen using structured editing, why does it matter what the syntax is? The editor is going to handle it for you anyway. > Where paredit for Python? I don’t know, go make it. But what would you imagine it to do? Moving blocks of indented code around is already easy without needing language-specific treatment.
- zelphirkalt 2y ago
- zelphirkalt 2y agoBrackets? That's easy! Just use parentheses instead! I guess you mean parentheses. Perhaps I am unaware of some meaning of brackets, that also describes parentheses, but afaik parentheses are different from brackets.
- dasyatidprime 2y agoUK English mostly treats unadorned “bracket” as referring to (), in fact, as opposed to US English which more often treats it as referring to [].
- para_parolu 2y agoIn Russian words parentheses, brackets and braces are represented by the same word with modifier (round, square, figure, etc) I always have problem when speaking English because can’t remember which one is which.
- zem 2y agoin commonwealth english () are "brackets" and everything else gets the shape modifier
- zelphirkalt 2y agoIn German the same happens: "runde Klammern" for (), "eckige Klammern" for [], and "geschweifte Klammern" for {}. Although when you say only "Klammern" people usually understand (), because that is what is often used in texts. This translates well: runde Klammern --> parentheses, eckige Klammern --> brackets, geschweifte Klammern --> braces. As such, the US English understanding of the words is clearer to me, than a non-distinguishing understanding.