Skip to content

Instantly share code, notes, and snippets.

@fstamour
Last active November 29, 2023 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fstamour/bacda529ac73a05505e98b43ea2d4fc8 to your computer and use it in GitHub Desktop.
Save fstamour/bacda529ac73a05505e98b43ea2d4fc8 to your computer and use it in GitHub Desktop.
cl-car
@fstamour
Copy link
Author

Package locks

@fstamour
Copy link
Author

fstamour commented Jan 27, 2022

make-string-output-stream doesn't accept an existing string with a fill-pointer

@fstamour
Copy link
Author

@fstamour
Copy link
Author

Advising functions

@fstamour
Copy link
Author

fstamour commented Jan 31, 2022

There's no way to define your own (defun (compound name) ...)

@fstamour
Copy link
Author

fstamour commented Feb 2, 2022

sleep with sub-second precision

Already in the standard, my bad

@fstamour
Copy link
Author

@fstamour
Copy link
Author

symbol aliases

https://discord.com/channels/297478281278652417/297478350145060875/966815899711582208

declaratively, through defpackage:

(defpackage #:pkg
  (:import-from #:alexandria
     #:unionf #:removef
     (#:line-up-last #:->>)
     (#:line-up-first #:->)))

Where the car is the original symbol and the cdr is the list of aliases

@fstamour
Copy link
Author

@fstamour
Copy link
Author

from me:

It could be nice if digit-char could take a third argument for the alphabet

@fstamour
Copy link
Author

Extensible intern

@fstamour
Copy link
Author

@Gleefre
Copy link

Gleefre commented Nov 27, 2023

There should be a CDR for package-local nicknames. (see https://github.com/Gleefre/cdr-package-local-nicknames/ for a draft I wrote some time ago -- a rewrite is probably needed)

@Gleefre
Copy link

Gleefre commented Nov 27, 2023

Structures should be less under-specified. For example slot-... functions should work on those (unless :type is vector or list); it should be possible to meaningfully use structure-class; there should be ensure-struct function.

@Gleefre
Copy link

Gleefre commented Nov 27, 2023

@Gleefre
Copy link

Gleefre commented Nov 29, 2023

[ until cl-car is fully up, will continue writing ideas here ]

There should be compiler-macro-let or similar.

@fstamour
Copy link
Author

[ until cl-car is fully up, will continue writing ideas here ]

I think it would be better to just create a discussion in cl-car

Maybe the title could be just "compiler-macro-let"

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