|
|
|
|
|
by arethuza
1032 days ago
|
|
The loop macro is an interesting example as its pretty much a mini language within Lisp just for looping purposes that doesn't use the normal s-expression based syntax - which is either a bad thing or a great example of how powerful Lisp can be... Personally, when I used to write Common Lisp for a living (a long long time ago) I was very fond of loop. As for "it's all just lists" - Common Lisp directly supports a variety of different mechanisms for structuring data, including the rather wonderful CLOS. |
|
https://lispcookbook.github.io/cl-cookbook/clos.html:
> arguably one of the most powerful object systems available in any language.
https://en.wikipedia.org/wiki/Common_Lisp_Object_System:
> Another unusual feature is that methods do not "belong" to classes; classes do not provide a namespace for generic functions or methods. Methods are defined separately from classes, and they have no special access (e.g. "this", "self", or "protected") to class slots.
Love this.
And the multiple dispatch.
> :before, :after, and :around
Guess these are similar to aspect-oriented programming. Maybe useful for plugin systems.
> change-class
This looks pretty cool for GUI apps. So many times you want to change a component to something else.