Common Lisp has a function change-class that lets you change the class of instance (like reassigning __class__ in Python). http://clhs.lisp.se/Body/f_chg_cl.htm
I love the note at the end: "semantic difficulties" if you call any methods whilst the class changes!
miniblog.
Related Posts
TIL that LSP 3.18 was released this month! Several APIs now support richer content, such as tooltips or docs on code action kinds.
Signature help continues to improve too, allowing you see more about a function at its call site.
What's the best string representation of a function? Comparing with other PLs:
Python: <function __main__.add_one()>
JS: [Function: addOne]
Clojure: #function[user/add-one]
Scheme: #<procedure add-one (x)>
I'm currently thinking about <fun add_one() foo.gdn:123>
Agentic programming workflows rather remind me of genetic programming. The agent has a validation step that looks like a fitness function, and both run iterative trials.