libera/#commonlisp - IRC Chatlog
Search
15:07:26
beach
Guest69: That's pretty normal, but you should have an explicit `else' branch for your IF with '().
15:08:20
jackdaniel
sure, there is sometimes a need to do that, I'm usually doing ,@(and foo (list :foo foo))
15:08:53
beach
Because the convention is for IF to be used for value, and then an explicit else branch is, well, more explicit.
15:08:58
jackdaniel
no, ,@nil is well defined, beach talks about style; usually one-arm if is replaced with WHEN or UNLESS
15:09:30
beach
Yes, that, but then WHEN and UNLESS are used in a context when the value is not needed.
15:10:24
jackdaniel
IF with superficial NIL adds plenty of clutter, AND sounds like a better alternative
15:10:46
jackdaniel
Guest69: there is a style guide written by Pitman and Norvig that has numerous useful advices
15:10:55
Guest69
Let's say that Tcl's {*} spoiled me when it comes to constructing arg lists in place
15:14:31
jackdaniel
that said people often use implicit return values and that often makes code more readable (at least to me)
15:14:50
jackdaniel
the conclusion in this poem https://people.cs.uchicago.edu/~wiseman/humor/large-programs.html strongly resonates with me ,)
15:22:05
Nilby
quasi-quoting was quasi-hard for me until a got quasi-good at it, but i still get quasi-confused by quasi-overusing it ,@,`,',@,
15:24:13
Guest69
By the way, any other way than apply when not in macro-expansion to achieve the same effect?
15:25:20
jackdaniel
Guest69: `(something '(,@var)) and `(something (list ,@var)) are different because the latter does not prevent evaluation of forms in var
15:26:08
Nilby
i'm always to lazy to write another similar function, so i write a very complicated set of macros to do it for me
15:26:50
Bike
sounds cargo culted. sbcl will compile (foo ...) and (funcall #'foo ...) identically for the most part
15:27:10
Bike
the other operator you can use to give functions variable arguments is multiple-value-call, but it's a pretty special operator
15:27:58
Bike
apply is more involved than funcall, but not enough that you should worry about it in most circumstances. consing up lists to give to it might take some time, though
15:28:59
Guest69
Fun coincidence, I just used multiple-value-call 1 minute ago to write a map-img for opticl
19:51:58
thuna`
Does anyone know why I am getting "Failed to find the TRUENAME of /tmp/packages.lisp" when doing (asdf:load-system)?
19:53:04
Bike
you're loading a system in /tmp that includes a packages.lisp but there is no such file?
19:56:40
Bike
i mean, kind of anything? what's in tmp, what system you're loading, what the definition of that system is, where asdf is looking for the system, what you are trying to do overall, etc
20:08:05
thuna`
Bike: I shouldn't be doing anything out of the ordinary. I have a .asd file in a directory with the other components and I'm trying to load it using load-system from the Slime repl. The tmp folder doesn't have anything interesting
21:12:33
jackdaniel
thuna`: you probably compiled asdf:defsystem with C-c C-c, temporary file got placed in /tmp/ and the base path were set invalid
1:06:17
Guest74
I don't know how people write java. I thought I'd take a look at the code of Languagetool that mfiano mentioned. My eyes are confused.
2:33:04
ck_
Guest74: only briefly, so I don't get slapped with the off-topic parenthesis, I'll say that for most of these very ritualistic languages, tooling probably plays a major role; it's why "the IDE" is so important there