Skip to content

Comments

checkpoint#3

Draft
richardkiss wants to merge 1 commit intohashgreen:mainfrom
richardkiss:comments
Draft

checkpoint#3
richardkiss wants to merge 1 commit intohashgreen:mainfrom
richardkiss:comments

Conversation

@richardkiss
Copy link
Collaborator

Comments and notes to self. Do not merge this PR; it's for discussion purposes only.

@richardkiss richardkiss marked this pull request as draft April 27, 2023 00:30
@richardkiss
Copy link
Collaborator Author

I haven't reviewed every file yet, but I thought I'd push partial work.

Copy link
Contributor

@stmharry stmharry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments. More to come


;; this is very clever
;; I wonder if it makes sense to have "profiles" like rust does, so we can get debug messages
;; back from asserts in DEBUG mode, but have them stripped out for RELEASE mode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. We can have two includes: (include cypher.clib) and (include cypher@dev.clib)

(defconstant cypher.constants.CONS #c)
(defconstant cypher.constants.FIRST #f)
(defconstant cypher.constants.REST #r)
(defconstant cypher.constants.LISTP #l) ;; the `#` emphasizes that it's a keyword
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh so #c is identical to plain c?


(
; name mingling to be compatible with curry-and-treehash.clinc
; name mangling to be compatible with curry-and-treehash.clinc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants