@ekaitz_zarraga @Ninjatrappeur In general I’d recommend records: they’re disjoint types (so you get type checking and can’t put in a value for a nonexistent field) and they’re fast. There’s destructuring via ‘match’ (or ‘match-record’ in Guix).
Conversation
Notices
-
Ludovic Courtès (civodul@toot.aquilenet.fr)'s status on Saturday, 16-Apr-2022 07:54:20 UTC Ludovic Courtès - Santa Claes 🇸🇪🇭🇰🎅 likes this.
-
Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Saturday, 16-Apr-2022 07:54:21 UTC Ekaitz Zárraga 👹 @Ninjatrappeur In clojure it's easier to manage because the hash-maps have a good interface... and argument destructuring helps a lot.
In guile I'm not even sure about which type I should use for things... alists are superslow for the type of application I'm trying to build and I can't think of anything better than a record...
Maybe rewrite in C?