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

Pages: 1-

Lisp Syntax: (func arg arg) vs func(arg arg)

Name: Anonymous 2013-05-19 17:05

Would changing Lisp's syntax as described in the thread title (with no further modifications, arithmetic operators are still prefix, etc) result in any loss in expressibility, generality, or have any other significantly negative consequences?

I'm trying to imagine a ``Trojan Lisp'' for warming up programmers proficient in other languages to the concepts unique to the Lisps. It seems like an insignificant difference (I'm fine with either syntax), but I really think it would go a long ways toward making the language more palatable to people that aren't already Lisp programmers.

Name: Anonymous 2013-05-19 17:14

Yes. Expressions are lists, and the first element is a procedure. Imagine generating code for your syntax, it wouldn't be as consistent.

Name: not again... 2013-05-19 17:18

Name: Anonymous 2013-05-19 17:24

nig

Name: Anonymous 2013-05-19 17:48

And lose homoiconicity? No.

Name: Anonymous 2013-05-19 17:57

Internal representation is the same.

Name: Anonymous 2013-05-19 19:10

Plain text representation isn't, ``faggot''.

Name: Anonymous 2013-05-19 19:31

seems ok to me except for representing the empy list, and lists where the first element is a list.


(defvar k '())

(let ((a 1)
      (b 2))
  (+ a b))

Name: Anonymous 2013-05-19 20:21

It seems like an insignificant difference
No it's not
I'm fine with either syntax
The former is more like ``abstract syntax tree'' than ``syntax''.
People tried something similar to the latter once, it was called ``M-expression''.

Name: Anonymous 2013-05-19 20:49

>>9
AND IT WAS SHIT

Name: Anonymous 2013-05-19 22:14

>>7
>implying cons cells are plaintext
IHNBT, ``farget''

Name: Anonymous 2013-05-19 22:38

You could easily double the number of Lisp programmers by making just one runtime that isn't unmitigated shit.

Name: Anonymous 2013-05-19 23:14

>>11
>le implying le /g/ face is not le reddit meme
>le 2013
le lel, /g/roski, truly /e/gin leee lXDDD

Name: Anonymous 2013-05-20 6:09

>>13                                   `
>
>

.>
>
>
>
.
>>
>
>>>>
>
>
>
>>>>
....
>>
..
>>>
>
>>>>
>>>
>>
>
>

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