4 ms·
> In the meantime, I'm in the process of building my own "alternate prelude" I'm thinking more and more about doing the same. But – there is always a but – I a
by thibran 6y ago
> In the meantime, I'm in the process of building my own "alternate prelude"
I'm thinking more and more about doing the same. But – there is always a but – I also dislike some other things:
Fix procedure signatures → Why is there 'remove' and 'delete'? Scheme is not statically typed, but strangely enough, this fact in not exploited often. There should be only one word with the meaning "delete" in the programming language.
Fix argument positioning → The order should always be: proc-name, main-object, arguments... Ideally one should be able to guess the name and arguments of a procedure.
Fix procedure names → Some procedure names are too long or have strange names. List procedures should have a list- prefix, only Transducers or generic procedures should have no prefix.
Also maybe stop supporting a :key argument and design everything to use lenses to target sub-structures.
Some handy general purpose procedures are missing here and there, so an improved prelude should come with them, too. I don't want to import multiple string/list/whatever-libraries to handle a task. The nice thing about Scheme is, all of this is doable.