Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Lox Language (chapter) #73

Closed
colms opened this issue May 11, 2017 · 1 comment
Closed

The Lox Language (chapter) #73

colms opened this issue May 11, 2017 · 1 comment

Comments

@colms
Copy link

colms commented May 11, 2017

possible errors (if being really picky)

  • copyright year is 2015, I forgot to point this out earlier
  • "Ritchie had this idea called ..." - This might be nothing but the reader might have forgotten who "Ritchie" is, as he was only briefly mentioned in an earlier chapter:
    • "You don’t have to be the reincarnation of Dennis Ritchie"
  • the term "Ref counting" isn't formally introduced. "Reference counting is and then "Ref counting" is used. This is me being super picky.
    • "There are two main techniques for managing memory: reference counting and tracing garbage collection (usually just called “garbage collection” or “GC”). Ref counters are much ..."
    • could say something like "reference (ref) counting" or something a bit better. I don't have a great solution here.
  • The term "literal" is used. This is first used just once in "A Map of the Territory":
    • "Others may be several characters long, like numbers (123), string literals ("hi!"), and identifiers (min)."
      I don't believe "literal" is defined anywhere. I have similar feelings with other terms like "expressions" etc.. It might be worth having a glossary or something to that effect.
  • "Functions are first-class in Lox" - I don't think "first-class" is defined.
  • sometimes "first-class", sometimes "first class".

comments

  • I love how the "Unified Theory of Garbage Collection" PDF name is "bacon-garbage".
@munificent
Copy link
Owner

copyright year is 2015, I forgot to point this out earlier

Fixed. This trips everyone up, even though only showing the oldest date is in fact sufficient. I think people expect copyrights to show freshness, when the intent is actually to show originality. The older the copyright the better, because it shows you got there first.

But, since it confuses everyone, changed it to show the date range.

"Ritchie had this idea called ..."

Added Dennis.

the term "Ref counting" isn't formally introduced.

Yeah. I looked at that pair of paragraphs and tried to figure out a what to weave in "I'm not gonna explain them", but couldn't get it to flow. 🤷‍♂️

The term "literal" is used.

An ongoing dilemma I have is not being sure how much knowledge the reader has. I am assuming they are already an experience programmer, so I expect some language lingo to be familiar to them as users of programming languages. In most cases, I do try to define it, at least roughly, but I don't want to spend too much prose assuming they know nothing.

"Functions are first-class in Lox" - I don't think "first-class" is defined.

It says: "which just means they are real values that you can get a reference to, store in variables, pass around"

I think that's enough of a definition. Hopefully, readers are already familiar with the term.

sometimes "first-class", sometimes "first class".

Ah, yes. The rule I'm following is that terms like this are hyphenated when used as an adjective ("first-class function") and not when used as a noun phrase ("functions are first class"). But I wasn't consistent. Went through and fixed a couple.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants