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

[C++] delete considered harmful

Name: Anonymous 2016-01-02 14:13

The unbridled use of the delete statement has as an immediate consequence that it becomes terribly hard to find a meaningful set of coordinates in which to describe the process progress. ... The delete statement as it stands is just too primitive, it is too much an invitation to make a mess of one's program.

Never use delete, use smart pointers, memory pools, stack allocations. Don't break RAII.

Name: Anonymous 2016-01-07 9:43

>>50
It's homogenous, which makes it easy to parse and to generate programmatically. There are no questions like "is the next element of this form a list or a vector" (I'm looking at you, Clojure). Plus, s-expressions are a joy to edit in a good text editor - go from start of a form to its end or vice versa, copy whole form, paste it, delete it, enclose it in another form. None of that is possible in a non-sexp language.

Another upside of s-exp syntax is that people who use it tend to not produce the Empty Space Abomination of C-like languages:
}
}
}
}
}
}
}
}


Don't know whether it's an intelligence thing or not, but s-exps somehow teach people to use the enlightened ))))))) to finish blocks of code.

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