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

Boku no Pico

Name: Anonymous 2011-05-27 15:06

Here is why Lisp unpopular...

http://en.wikipedia.org/wiki/Comparison_of_programming_languages_(string_functions)

Ruby:         ["a", "b", "c"].join("-")
Perl:         join( '-', ('a', 'b', 'c'));
C#:           String.Join("-", {"a", "b", "c"})

Common Lisp:  (format nil "~{~a~^-~}" '("a" "b" "c"))

Name: Anonymous 2011-05-27 16:55

>>6
Sure, it will have everything for popular ENTERPRISE work, but try venturing outside of that field and you'll find plenty of things it can't offer without major hacks, things which are just a few lines of code away in Lisp.

>>7
Nobody forces you to use format, there are alternatives to it and you're also free to manually work with strings if format isn't to your liking. Leaving that aside, the format string syntax isn't that hard to understand ~ is the escape character, so it could be looked at like: {a^-}. You don't see people complaining about % in C or {} in C#. Format strings tend to be the uglier part of a language.

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