guile/guile
22
141
Fork
You've already forked guile
45

Add SRFI-244 to Guile. #26

Merged
ArneBab merged 1 commit from readevalprintloop/guile:add-srfi-244 into main 2025年10月09日 07:27:38 +02:00

This SRFI re-export the 'define-values' from (guile), aims to help
writing portable code.

  • module/srfi/srfi-244.scm: New file.
  • doc/ref/srfi-modules.texi: Added SRFI-244 section.
  • NEWS: mentoin SRFI-244 supports.
This SRFI re-export the 'define-values' from (guile), aims to help writing portable code. * module/srfi/srfi-244.scm: New file. * doc/ref/srfi-modules.texi: Added SRFI-244 section. * NEWS: mentoin SRFI-244 supports.
Author
Contributor
Copy link

Should I add a test suite for SRFI-244? (maybe copy from the original test suite of define-values).

Should I add a test suite for SRFI-244? (maybe copy from the original test suite of `define-values`).
Z572 requested changes 2025年10月05日 15:57:09 +02:00
Dismissed
@ -0,0 +22,4 @@
;;;
;;; Code:
(define-module (srfi srfi-244)
First-time contributor
Copy link

also add (cond-expand-provide (current-module) '(srfi-244))

also add (cond-expand-provide (current-module) '(srfi-244))
readevalprintloop marked this conversation as resolved
@ -0,0 +23,4 @@
;;; Code:
(define-module (srfi srfi-244)
#:use-module (guile)
First-time contributor
Copy link

no needed

no needed
readevalprintloop marked this conversation as resolved
@ -0,0 +24,4 @@
(define-module (srfi srfi-244)
#:use-module (guile)
#:export (define-values))
First-time contributor
Copy link

#:re-export

#:re-export
Author
Contributor
Copy link
All done in https://codeberg.org/guile/guile/commit/47c06a071c24789fbe11d83039ad807f1a946e88#diff-739a6352bda77b9f6dca6ad262897e00fab2cb41
readevalprintloop marked this conversation as resolved
@ -7875,0 +7877,4 @@
@subsection SRFI-244 - Multiple-value Definitions
@cindex SRFI-244
The implementation of this SRFI re-export the @code{define-values} form
Contributor
Copy link

nitpick: re-exports rather than re-export

nitpick: re-exports rather than re-export
Contributor
Copy link

Also add a period at the end of the sentence.

Also add a period at the end of the sentence.
Author
Contributor
Copy link

@annoyingusername wrote in #26 (comment):

Also add a period at the end of the sentence.

The end of sentence is on the next line

@annoyingusername wrote in https://codeberg.org/guile/guile/pulls/26#issuecomment-7558540: > Also add a period at the end of the sentence. The end of sentence is on the next line
readevalprintloop marked this conversation as resolved
annoyingusername left a comment
Copy link

In your commit message, fix mentoin to Mention and supports to support.

In your commit message, fix `mentoin` to `Mention` and `supports` to `support`.
@ -0,0 +25,4 @@
(define-module (srfi srfi-244)
#:re-export (define-values))
(cond-expand-provide (current-module) '(srfi-244))
Contributor
Copy link

If define-values is core Guile, shouldn't SRFI-244 be part of %cond-expand-features instead of using cond-expand-provide? See the comment in its definition in module/ice-9/boot-9.scm.

If `define-values` is core Guile, shouldn't SRFI-244 be part of `%cond-expand-features` instead of using `cond-expand-provide`? See the comment in its definition in [[module/ice-9/boot-9.scm]].
Author
Contributor
Copy link

fair, fix in new commit. Thanks for catching this!

fair, fix in new commit. Thanks for catching this!
readevalprintloop marked this conversation as resolved
@ -0,0 +20,4 @@
;;;
;;; This is an implementation of SRFI 244: Multiple-value Definitions.
;;;
;;; Code:
Contributor
Copy link

This should probably be:

;;; Commentary:
;;; This is an implementation of SRFI 244: Multiple-value Definitions.
;;; Code:

Other than that, it looks good to me!

This should probably be: ```lisp ;;; Commentary: ;;; This is an implementation of SRFI 244: Multiple-value Definitions. ;;; Code: ``` Other than that, it looks good to me!
readevalprintloop marked this conversation as resolved
NEWS Outdated
@ -40,0 +41,4 @@
Guile now provides syntax 'define-values' under the module (srfi
srfi-244). This syntax existed for a long time in the core of Guile,
export it in SRFI module can help writing portable code.
Collaborator
Copy link

small grammar nitpick: exporting it in the SRFI module

Suggestion for the whole last line:

now it is also exported via srfi-244 to help writing portable code.

Aside from that it is ready to merge -- feel free to ping me in IRC once the grammar is fixed (in any way you choose) so I can merge.

small grammar nitpick: `exporting it in the SRFI module` Suggestion for the whole last line: `now it is also exported via srfi-244 to help writing portable code.` Aside from that it is ready to merge -- feel free to ping me in IRC once the grammar is fixed (in any way you choose) so I can merge.
Author
Contributor
Copy link

Done in e5c4fb243c

Done in https://codeberg.org/guile/guile/commit/e5c4fb243c26c8a419e43212ec402218f3d4ed05
readevalprintloop marked this conversation as resolved
Collaborator
Copy link

Thank you! Merged.

Thank you! Merged.
Sign in to join this conversation.
No reviewers
Labels
Clear labels
Compat/Breaking
Breaking change that won't be backward compatible
Contribution Welcomed
A PR is most welcome to help
Discussion
More of a discussion than an issue
Good First Issue
An issue that is good for new contributors
Help Wanted
Help is needed from someone
Kind/Bug
Something is not working
Kind/Documentation
Documentation changes
Kind/Enhancement
Improve existing functionality
Kind/Feature
New functionality
Kind/Security
This is security issue
Kind/Testing
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
Windows
🪟 related.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
guile/guile!26
Reference in a new issue
guile/guile
No description provided.
Delete branch "readevalprintloop/guile:add-srfi-244"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?