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

Sepples

Name: Anonymous 2014-12-20 10:36

"I was a C++ programmer before I started designing Ruby. I programmed in C++ exclusively for two or three years. And after two years of C++ programming, it still surprises me."

Name: Anonymous 2014-12-21 14:15

>>7
ANSI C have around 20 keywords, Haskell on the other side have around 60, almost the same amount of C++. (not counting type related keywords)

Name: Anonymous 2014-12-21 15:22

>>10
Bullshit.

Haskell has 21 reserved keywords that cannot be used as names for values or types. This is a relatively low number (Erlang has 28, OCaml has 48, Java has 50, C++ has 63—and Miranda has only 10), and keeping it low was a priority of the Haskell Committee.

http://haskell.cs.yale.edu/wp-content/uploads/2011/02/history.pdf

Name: Anonymous 2014-12-21 15:42

Name: Totally not >>11-kun 2014-12-21 16:11

>>12
Many of those are only available in language extensions, and if you even counted special characters like that then C would also have way more than 20 keywords.
Compare that with C++'s monstrosity here
http://en.cppreference.com/w/cpp/keyword

Name: Totally not >>11-kun 2014-12-21 16:13

>>13
C++
I meant Seppurus

Name: Anonymous 2014-12-21 16:33

>>14
SEPPLESAURUS

Name: Anonymous 2014-12-21 16:34

>>12
Have you tried actually reading that? They count things like "=" and ">=" as reserved words. By that token, C is going to have 60 reserved words too.

Name: Anonymous 2014-12-21 16:42

>>13
And this is not even counting things like weak_ptr and unique_ptr, which are pertinent to memory management and are used as reserved words in lots of libs.

Name: Anonymous 2014-12-21 16:51

>>15
SEPPLESAURUS-REX©

Name: Anonymous 2014-12-21 16:56

SEPPLESAURUS++17

Name: Anonymous 2014-12-21 17:03

If it ain't LISP, it's shit.

Name: Anonymous 2014-12-21 17:06

>>13,16
Sure you can remove ! ' " - -- - ; , =
But, you must include sugars like >>= and separate things like "if then else", then you will still have around 60 reserved keywords.

Name: Anonymous 2014-12-21 17:08

>>21
sugars like >>=
>>= is just a function.

Name: Anonymous 2014-12-21 17:11

>>22
It is an operator and it is fundamental to the language ability to do io, common.

Name: Anonymous 2014-12-21 17:16

>>22
sorry I was going to say do instead of >>= (which is not included in the list)

Name: Anonymous 2014-12-21 17:22

OK faggots I've rounded up the real reserved keywords of Haskell:

module where
import let
in where
do case
of class
instance infixr
infixl data
type newtype
foreign deriving
if then
else


That's it, just 21. All of those others like "qualified" or "hiding" are not even keywords. I've used them for identifiers and they're legal.

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