Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
HoldMyType
@xameer@mathstodon.xyz  ·  activity timestamp 3 weeks ago

tendency in classical #Lisp is to use lists to represent everything, and then to browse them “by hand” using ‘car’, ‘cdr’, ‘cadr’, and co. There are several problems with that style, notably the fact that it is hard to read, error-prone, and a hindrance to proper type error reports.

#Glean code should define appropriate data types (for instance, using ‘define-record-type’) rather than abuse lists. In addition, it should use pattern matching, via #Guile’s (ice-9 match) module, especially when matching lists.

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.2.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login