Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Verius (verius@community.highlandarrow.com)'s status on Monday, 26-Nov-2018 13:49:30 EST Verius Verius
    In a way the elegance of C++ is that by making explicit the handling of the most common resource type - memory - it forces resource lifetime to be a primary concern of programmers which through the developed idioms (RAII) helps a lot with resources that are less visible but also important (e.g. file descriptors, mutexes). Compare this to the approach taken by C# and Python where you have to actively declare a block scope for the lifetime of a resource (using in C# / with in Python) and if you forget to do that the resource does not get deallocated. So instead of having memory be the special case as with a garbage collector C++ applies the same logic (lifetime of a resource is tied to the lifetime of an object) to all resources.
    In conversation Monday, 26-Nov-2018 13:49:30 EST from community.highlandarrow.com permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.