Text has many inherent advantages. Humans communicate with words and are experts at reading and manipulating text. Keyboards are optimized for text entry.
-
-
Prikaži ovu nit
-
Imagine if syntax errors weren't a thing. It'd be huge for engineers new to a language. Version control on AST would be pretty crazy. A function rename would go from N lines to a single operation. And code review!
Prikaži ovu nit
Kraj razgovora
Novi razgovor -
-
-
I’m not sure if AST is the right layer of abstraction for expressing intent. Text is a more compact and portable format than ASTs. I don’t think shifting the source of truth will change how we program, it’s about changing the abstraction layer (ie no code movement).
-
I was thinking less about the source of truth than the ways we manipulate it (abstraction layers like you said). Text is more portable but not necessarily more compact. Invalid programs are representable with text.
Kraj razgovora
Novi razgovor -
-
-
Projectional editors! It is a really cool concept, but there are not a lot of examples where it has been successful.
@darklang and@jetbrains_mps are the only two I know of. I think one of the problems is that when you can't "just type text", it can become really frustrating. -
Yeah! I really like what
@darklang is doing and need to learn more about MPS. I wonder if there's a middle-ground approach where you flip between text and AST. VSCode and IDEs have AST-aware operations which use text as source of truth.
Kraj razgovora
Novi razgovor -
-
-
What is an AST?
Novi razgovor -
-
-
we've done that a number of times, & one such work was XSLT & it was both amazing & confoundinghttps://mobile.twitter.com/rektide/status/1218656186389684232 …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
Lisp. Back in '86. Xerox 1186, graphical editor, move expressions and so on...
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.
