Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Macro-writing challenge

Name: Anonymous 2016-01-16 13:19

Write a macro check-arguments-non-nil to be used in function definitions, that would expand to assertion about every argument being non-nil.
The intended usage of this macro:

(defun foo (a b c d)
(check-arguments-non-nil)
foo-body)


This should expand to:

(defun foo (a b c d)
(assert (and (not (null a)) (not (null b)) (not (null c)) (not (null d)))
(a b c d)
"Null argument in FOO")
foo-body)


The macro must work whatever the number and names of the function parameters.

Name: Anonymous 2016-01-23 4:44

>>66
it's not valid, it's like I'm on reddit and someone posted a cool link that happens to be in lisp and some retard comes out with his hilarious joke about how lithp use brackets. It's extremely predictable, unfunny and tiresome. It's one of the things normals do to help push things like lisp aside and keep them marginalized so they don't have to bother learning them.

Name: Anonymous 2016-01-23 4:54

I like how /jp/ immigrants will bitch and moan about people's usage of the quote feature, but you won't hear a peep from them when people say completely idiotic reddit-tier shit about ``hurrrr durr lisp too many brackets''. I guess since they're not capable of complaining about the actual meaning of something they have to resort to complaining about its syntax.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List