!yXBwWNYGCPdITQVxQG:matrix.org

Common Lisp

144 Members
Common Lisp27 Servers

Load older messages


Timestamp Message
12 Mar 2020
23:29:49@slrs:matrix.orgSLRS joined the room.
13 Mar 2020
21:33:45@heow:matrix.orgheow joined the room.
21:52:04@heow:matrix.orgheow set a profile picture.
14 Mar 2020
07:00:38@isposdef:matrix.org@isposdef:matrix.org left the room.
15 Mar 2020
23:11:31@amnesia101101:matrix.orgamnesic joined the room.
16 Mar 2020
00:20:44@amnesia101101:matrix.orgamnesic changed their display name from amnesia101101 to amnesic.
03:17:48@memesmith:matrix.orgmemesmith joined the room.
21 Mar 2020
00:17:00@paulapatience:matrix.orgpaulapatience joined the room.
23 Mar 2020
10:08:43@amartens:matrix.orgstarcrATI joined the room.
10:28:31@amartens:matrix.orgstarcrATI changed their display name from amartens to starcrATI.
16:04:43@cerbero:privacytools.iocerbero joined the room.
24 Mar 2020
13:20:40@davd33290:matrix.orgDavd changed their display name from davd33290 to Davd.
25 Mar 2020
01:26:55@adlawren:goatchat.caadlawren joined the room.
06:29:51@liambrown:matrix.orgliambrown left the room.
26 Mar 2020
18:28:54@gnu_ponut:matrix.orgGnuxie πŸ’œπŸ

akater: found this in cliki about p or -p

By convention, the names of predicates usually end in the letter p (which stands for "predicate"). Common Lisp uses a uniform convention in hyphenating names of predicates. If the name of the predicate is formed by adding a p to an existing name, such as the name of a data type, a hyphen is placed before the final p if and only if there is a hyphen in the existing name. For example, number begets numberp but standard-char begets standard-char-p. On the other hand, if the name of a predicate is formed by adding a prefixing qualifier to the front of an existing predicate name, the two names are joined with a hyphen and the presence or absence of a hyphen before the final p is not changed. For example, the predicate string-lessp has no hyphen before the p because it is the string version of lessp (a MACLISP function that has been renamed < in Common Lisp). The name string-less-p would incorrectly imply that it is a predicate that tests for a kind of object called a string-less, and the name stringlessp would connote a predicate that tests whether something has no strings (is "stringless")!

https://www.cliki.net/Naming+conventions

18:29:49@gnu_ponut:matrix.orgGnuxie πŸ’œπŸwhich resolves it exactly how it was resolved here iirc
19:09:35@farnerup:matrix.orgfarnerupThanks, I had been wondering about that.
22:54:51@farnerup:matrix.orgfarnerup set a profile picture.
27 Mar 2020
03:41:38@http500:junta.plhttp500 joined the room.
04:16:14@bobbae:matrix.orgbobbae joined the room.
14:49:15@akater:matrix.orgakater
In reply to @gnu_ponut:matrix.org
which resolves it exactly how it was resolved here iirc
I think I quoted exact same passage from CLtL2, or maybe it was in some other place. Thanks anyway.
29 Mar 2020
14:50:16@davd33290:matrix.orgDavdHello! Does someone know a lib to map one object into another conveniently?
19:53:36@davd33290:matrix.orgDavd(e.g. mapstruct for java)
21:12:40@quanta:matrix.orgquanta Never heard of this idea before, it's not really the same, but the closest concept I know of are the many examples where format mapping occurs, typically in a serialization/deserialization context. All the json libraries, cl-store and related libs, ORM, probably more. They all have handwritten code to convert from one object to/from another thing (bytes on a stream, DB row, or even something as simple as a hashtable to alist conversion).
21:13:48@davd33290:matrix.orgDavd Ok thank you πŸ™πŸ½
21:15:30@davd33290:matrix.orgDavdI think I’m gonna write it myself. It’s easier to write this kind of code in lisp than in java :)
30 Mar 2020
17:17:42@kuazar.amenra:matrix.orgkuazar.amenra joined the room.
31 Mar 2020
18:40:51@r1ss0le:matrix.orgr1ss0le joined the room.
1 Apr 2020
11:24:28@naryl:matrix.orgnaryl joined the room.
3 Apr 2020
21:57:51@jordan:yonder.computerjordan joined the room.

There are no newer messages yet.


Back to Room List