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

Ruby, an acceptable LISP

Name: Anonymous 2015-08-31 17:43

Name: Anonymous 2015-08-31 17:54

The most common use of LISP macros is to avoid typing lambda quite so much:

(defmacro with-each-natural-number (n expr)
`(each-natural-number (lambda (,n) ,expr)))

Is this nigger serious?

Name: Anonymous 2015-08-31 18:07

>>2
hahahaha yeah

Name: Anonymous 2015-08-31 23:06

I had no idea people actually said this ``acceptable LISP'' thing.

Name: Anonymous 2015-09-01 6:16

Lisp is not an acceptable Java. http://matthias.benkard.de/journal/110

Name: Anonymous 2015-09-01 6:49

>>5
He makes a lot of good points.
Especially when he says ``Lisp is too old to be useful''.

Name: Anonymous 2015-09-01 6:56

Lisp sucks.
Who wants to copy and paste their code into an interpreter every time they want to run it?
Why can't I create a binary?
Why is there no main function?
Why is Lisp indentation so horrific?

Name: Anonymous 2015-09-01 11:18

Who wants to copy and paste their code into an interpreter every time they want to run it?
csi file.scm

Why can't I create a binary?
csc file.scm

Why is there no main function?
(define (main args) ...)

Why is Lisp indentation so horrific?
the 12 year old or the loser

Name: Anonymous 2015-09-01 12:34

>>8
the 12 year old or the loser
wat?
Lisp indentation is horrible, you can't deny that.
In most languages you just use a single tab and that's fine.
In CL you need to use 10 or 20 spaces to get the indentation into the perfect place before you can write a line

Name: Anonymous 2015-09-01 12:52

>>9
import <stdio.h>
int main(void)
{
if(3 == 3) {
printf("3 equals 3\n");
}
return 0;
}

(defun main()
(if (posters-num-eq-9)
(print ">>9 is a faggot")))

Name: Anonymous 2015-09-01 17:32

>>9
We have text editors to do that automatically.

Do you think
end
end
end

is prettier than
)))

Name: Anonymous 2015-09-01 19:06

>>11
Yes. I like blue.

Name: Anonymous 2015-09-02 2:49

>>12
Easier to read too

Name: Anonymous 2015-09-02 2:55

>>11
I'm talking about the fact that it's inconsistent.
Instead of just using a tab for each layer of indentation you do things like use 8 spaces to get the second line in line with the second argument of the first line.

Name: Anonymous 2015-09-02 2:56

>>14
*first argument

Name: Anonymous 2015-09-02 5:25

>>14
You could just do easy indentation if you wanted to.

Name: Anonymous 2015-09-03 12:02

Indentation is for the editor to manage, not the user. Unenlightened fucks still fiddling with spacing.

Name: Going GNG is Not GNU 2015-09-05 6:46

>>17
Making the editor do a lot of the work is indeed a solution, but it's also like using training wheels on a bike.. A lot of people use microsoft visual studio because of all the training wheels included in the IDE. Then as soon as you start using pico or nano or notepad to write code, you no longer have your IDE training wheels with you.. and you fall off your bike.

Name: Anonymous 2015-09-05 8:09

>>17
Yeah but I want to write Lisp in Vim.
And from what I can tell Vim doesn't do fancy Lisp indentation.

Name: Anonymous 2015-09-06 5:15

>>19
Have you tried it? Mine does.

Name: Anonymous 2015-09-06 7:09

>>19
set cindent
or
set autoindent

also
set lisp

and use % to jump between braces. Use y% to copy expressions.

Name: Anonymous 2015-09-06 8:22

>>21
That just makes it indent by a single space.
It's not the kind of fancy indentation that I'm looking for.
Indentation like:
(defun pickup (object)
(cond ((member object
(objects-at *location* *objects* *object-locations*))
(push (list object 'body) *object-locations*)
...

Name: Anonymous 2015-09-07 7:50

>>22
You don't use one char indent? wow.

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