CIEL icon indicating copy to clipboard operation
CIEL copied to clipboard

A couple of questions about CIEL

Open mmontone opened this issue 3 years ago • 3 comments

Hi,

I'm considering using CIEL for one of my projects, but I'm not sure.. I have some questions.

My project has already started and is not using CIEL. Is it possible to "add CIEL on top" ? Like, in my package, instead of :use :cl, just replace with :use :ciel-cl or something like that ..

Also, I'm looking for a lambda expression with ignorable arguments support. Like (lambda (_ x) ...) . Does CIEL or some other package you know implement that?

Thanks

PD: I've used hu.dwim.defclass-star extension recently, and it is handy for easy class accessor names and exports; could be worth a look for CIEL.

mmontone avatar Jun 11 '22 14:06 mmontone

It would be a great sign if you started using CIEL :) I bet you know the usual warnings. But at the same time, since the day I use it there is little to no breakage (and, if I remove something, it's simply a library we can install and use in addition of the others). From the top of my head: I am not happy with the current JSON library (cl-json), I will change it. The only thing that is brittle right now is ciel-repl, but this is not an issue for CIEL the library.

Yes we can use CIEL "on top". We ":use" :ciel in addition fo :cl:

https://github.com/ciel-lang/CIEL#usage

(defpackage yourpackage
  (:use :cl :ciel))

(note: I seldom tested the generic-ciel package)

I checked cbaggers' fn and cl-punch, they don't seem to support that and I don't know others.

Thanks for the reminder of declass-star, I have heard good things too. I had used defclass-std which I liked, I'll need to compare the two, but I definitely want to ship such a library.

vindarel avatar Jun 12 '22 10:06 vindarel

Ok. Thanks. I'll see what I do.

mmontone avatar Jun 12 '22 13:06 mmontone

Also, I'm looking for a lambda expression with ignorable arguments support. Like (lambda (_ x) ...) . Does CIEL or some other package you know implement that?

I've implemented this today: https://github.com/mmontone/mutils/blob/master/docs/mu-lambda-list.md

Some examples: https://github.com/mmontone/mutils/blob/master/tests/mu-lambda-list-tests.lisp

Perhaps it is worth considering for integration.

mmontone avatar May 31 '25 00:05 mmontone