sschwarzer
2022-7-19 18:54:29

Which is better/correct style: "… can be written in the syntax '(1 . a) " or "… can be written with the syntax '(1 . a)"?


sschwarzer
2022-7-19 18:54:55

Or even something else entirely? :wink:


ben.knoble
2022-7-19 18:59:45

“…can be written as '(1 . a)“—might depend on audience. Do they know/care what the word “syntax” in this context means? (This is on my mind, too, since I’m about to document a data-file syntax for an application that is essentially a handful of pre-fab structs, but users are unlikely to be Racketeers. I’m working on an editor for the data-files, but the app is useable without it, so…)


sschwarzer
2022-7-19 19:02:51

I like the “written as” suggestion, it’s also shorter.

The text is for the Racket glossary, so the audience is Racketeers and aspiring Racketeers. :slightly_smiling_face:


ben.knoble
2022-7-19 19:03:38

Yeah, brevity was partly on my mind, too. Strunk and White will forever have a special place in my brain…


sschwarzer
2022-7-19 19:23:30

I can’t stand their dogmatic tone. :smile: But I’ve read other books on writing. :slightly_smiling_face:


ben.knoble
2022-7-19 19:25:38

Fair enough. It definitely is a “do it this way” kind of book. But maybe I always assumed they knew rules were meant to be broken, and so read it “more like guidelines, anyway.” (thanks, Barbosa)


sschwarzer
2022-7-19 19:28:00

I especially like “On writing well” by William Zinsser and “100 ways to improve your writing” by Gary Provost.


ben.knoble
2022-7-19 19:29:44

thanks for the recs!


sschwarzer
2022-7-19 19:31:38

I’m not sure if I should write an entry on hash sets in the glossary. In Python, for example, they’re a built-in data type with their own literal syntax. On the other hand, in Racket, hash sets aren’t in racket/base, but racket/set, so it seems they’re kind of secondary. Other data types, like lists and vectors at least have some of their functionality in racket/base.


sschwarzer
2022-7-19 19:33:17

You’re welcome! :slightly_smiling_face:


sschwarzer
2022-7-19 19:34:10

I had thought about writing about (hash) sets together with the other container types, but I guess I’ll focus on other entries first. :slightly_smiling_face:


samth
2022-7-19 19:34:36

I would not describe things as “secondary” because they aren’t in racket/base


sschwarzer
2022-7-19 19:39:37

Depends on how you define “secondary” :wink: , but I guess I get your point.


sschwarzer
2022-7-19 19:40:38

I meant “secondary” relative to lists and vectors. I did not mean that they’re not useful or important in some cases.


samth
2022-7-19 19:41:13

I agree that they aren’t as fundamental as those, but sets appear in the list of data types in the reference, for example.


ben.knoble
2022-7-19 19:44:04

I think @sschwarzer is coming from the perspective of someone who things “I’m new to Racket, and not having sets in “the Racket language” makes them feel less important somehow.” Now, “the Racket language” is hard to pin down, but someone new who hears “use racket/base” this could be somewhat confusing.


ben.knoble
2022-7-19 19:44:22

Just my 2 cents, though, maybe I’m wrong about their POV


sschwarzer
2022-7-19 19:45:10

That’s a good point, and I now see I have at least planned entries for almost all the terms under the data types in the reference. So I’ll cover them at some point, but maybe put them in the “intermediate” instead of the “basic” category (see https://docs.racket-lang.org/racket-glossary/index.html#%28part._.Introduction%29 for the categories)?


sschwarzer
2022-7-19 19:47:20

> but someone new who hears “use racket/base” this could be somewhat confusing. I think I don’t mention racket/base specifically in the glossary so far. The glossary is indeed intended as an overview of the terms, not as a reference, not even something close to it.


samth
2022-7-19 19:47:23

I think intermediate seems reasonable


sschwarzer
2022-7-19 19:48:45

> I think intermediate seems reasonable Ok, we’re on the same page then. :slightly_smiling_face:

I already changed it in my local repo.


sschwarzer
2022-7-19 19:52:54

I’ve written some of the “intermediate” entries, but I want to focus mostly on the “basic” category for now.