Essarr LoreBook

Trying to go against the current

User Tools

Site Tools


lb:red

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
lb:red [2025-08-05 09:06:51] ninjasrlb:red [2025-08-05 14:30:22] (current) – [Parse & Code] ninjasr
Line 15: Line 15:
 Something you'll quickly learn is that DSLs like view or rich text is that you can’t use the built-in help tool to figure out what the individual commands do. This means you'll have to rely on documentation.\\ Something you'll quickly learn is that DSLs like view or rich text is that you can’t use the built-in help tool to figure out what the individual commands do. This means you'll have to rely on documentation.\\
 This did end up tripping me up, so it's best that you keep it in mind. This did end up tripping me up, so it's best that you keep it in mind.
 +=== Parse & Code ===
 +You'll eventually reach a point where you want to put code inside of parse rules. This can be done by placing regular Red code inside of round brackets (parentheses). But what isn't explained anywhere, though is obvious once you realized it (like me) is that you can place these anywhere in the parse rules.\\
 +Originally, I assumed that you could only place these at the end of the rules, but realized that that wasn't the case.
 +==== Complaints ====
 +Here I'm gathering a few minor issues I have with the Red language which you may or may not find useful.\\
 +I'll note that these aren't (so far) related to things like the slow development pace or lack of features available in REBOL (for example).
 +=== View's lack of Granularity ===
 +Having read [[https://caseymuratori.com/blog_0016|this]] article, which isn't related to Red directly, I came to a bit of a realization.\\
 +Basically, in view, if something isn't explicitly available thru the dialect...you're kinda screwed. You can’t just go down a level to add a split-button – which is something I wanted to do – because that lower level isn't accessible to the average person.\\
 +Granted, at some point you're going to hit Red/System, but that still isn't really part of the point. As far as I know, it isn't possible to draw a GUI in Red without using view or going down to Red/System.
 +
 +This does require some more investigation by me – however! I've already looked thru a lot of the available documentation and even glanced at the source code and, so far, I haven't found anything.
 ===== Trivilinks ===== ===== Trivilinks =====
   * [[http://www.red-lang.org/|Main Site]]   * [[http://www.red-lang.org/|Main Site]]
lb/red.1754384811.txt.gz · Last modified: 2025-08-05 09:06:51 by ninjasr

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki