12 points · by gnosis · 15y ago · 21 comments
"Mexps" might attract a few new people to lisp, but the existing lisp community would reject them. It would be more effective in the long term to show people the value of lisp's existing syntax.
the idea is that mexps translate directly (and simply) into sexps, so macros would work in exactly the same way as they do now.
http://www.dwheeler.com/readable/sweet-expressions.html
edited to add:
"it makes the language far more flexible than any other language and provides a foundation for fully hygienic macros: you can modify the program entirely while it’s running and guarantee that there will be no crazy conflict behaviour. "
That's not true though, Common Lisp's macros can have nasty variable capture issues, can't they? This isn't using the word "hygienic" in the sense of Scheme's, so what does this mean exactly?
i think i prefer haskell operators to infixing with {}. still, i hadn't considered subscripting.
Something about nipples comes to mind.
i wasn't really expecting to be on hn :/
if fruit is 'apricot':
be if fruit == 'apricot':
? >>> "1"*1000 is "1"*1000
False
>>> 2**31 is 2**31
False
The fact is that the only thing guaranteed by "is" is that if you have "a = b", then "a is b". Whether or not "new" objects are going to be identical to old ones is left undefined, and may change depending on type or value. >>> "1"*20 is "1"*20
True
>>> "1"*21 is "1"*21
False