[ / / / / / / / / / / / / / ] [ dir / animu / arepa / mde / nofap / omnichan / s / sissy / vichan ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

[–]

 No.975159[Watch Thread][Show All Posts]

>By contrast, I find C++ quite ugly.

>The flaws of C++, as I recall from when I studied the matter around 1990, include syntax and semantics. As for syntax, its grammar is ambiguous, and it is gratuitously incompatible with C, which blocks the smooth upgrade path from C to C++.

>As for semantics, the abstract object facility of C++ is designed around the case where the real type of an object is known at compile time. However, in that case, abstract objects are equivalent to a naming convention for functions to call. The case where abstract objects add real power to a language is when the type is not known until run time. C++ does handle that, but it seems to be an afterthought, a poor relation.

>I suspect that I would find plenty of ugliness in the template library, but I don't know. That was added to C++ after I studied it.

 No.975164

He meant that flaws of C++, as he recalls from when he studied the matter around 1990, include syntax and semantics. As for syntax, its grammar is ambiguous, and it is gratuitously incompatible with C, which blocks the smooth upgrade path from C to C++.

As for semantics, the abstract object facility of C++ is designed around the case where the real type of an object is known at compile time. However, in that case, abstract objects are equivalent to a naming convention for functions to call. The case where abstract objects add real power to a language is when the type is not known until run time. C++ does handle that, but it seems to be an afterthought, a poor relation.

He suspects that he would find plenty of ugliness in the template library, but he doesn't know. That was added to C++ after he studied it.


 No.975165


 No.975183

C++ is ugly because C is ugly.


 No.975759

>By contrast, I find Rust quite ugly.

>The flaws of Rust, as I recall from when I studied the matter around 1990, include syntax and semantics. As for syntax, its grammar is ambiguous, and it is gratuitously incompatible with C, which blocks the smooth upgrade path from C to Rust.

>As for semantics, the abstract object facility of Rust is designed around the case where the real type of an object is known at compile time. However, in that case, abstract objects are equivalent to a naming convention for functions to call. The case where abstract objects add real power to a language is when the type is not known until run time. Rust does handle that, but it seems to be an afterthought, and a poor relation.

>I suspect that I would find plenty of ugliness in the template library, but I don't know. That was added to Rust after I studied it.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
4 replies | 0 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / animu / arepa / mde / nofap / omnichan / s / sissy / vichan ][ watchlist ]