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

Fad Oriented Programming

Name: Anonymous 2015-03-04 4:05

Is it time to declare object orientation officially over and allow functional programming to take the crown as the latest fad?

Also, do you think logical programming will be next? Maybe I should brush up on my Prolog.

Name: Anonymous 2015-03-09 2:37

I was with >>51 since the beginning, but the discussion got me curious, so I ran a test in sbcl. I don't know what the common lisp spec dictates, but sbcl isn't a lisp by our standards either. #() notation actually expands to a vector at the syntax level. I always thought it created the list, (vector ...). None of the built in syntax in common lisp expects a vector, but you could write macros that expect vectors as arguments and supply them with #().

* (defmacro form-is-list-p (form) (listp form))

FORM-IS-LIST-P
* (form-is-list-p (test))

T
* (form-is-list-p ())

T
* (form-is-list-p 8)

NIL
* (form-is-list-p (vector 1 2 3))

T
* (form-is-list-p #(1 2 3))

NIL

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