implicit return? [R for BE/BA]

posted by ElMaestro  – Belgium?, 2019-04-28 20:36  – Posting: # 20256
Views: 2,463

Hi d_labes,

» But IIRC has C or C++ also some weaknesses.

That's right.
For example, the number of built in functions in C is small. You need to write most functionality from scratch, so what you can do with three lines of code in R can easily be 100 lines of code in C. Much more if you think of e.g. the plot function which opens up a graphic device and with one line gives you a graph. Horrendously many hours of programming is needed in C to do such a thing.

The biggest disadvantage I can think of in C is clearly: Pointers (especially character pointers). They were hard to grasp initially. C does not have strings.
The biggest advantage I can think of in C is: Pointers. :-D They speed things up immensely. Like in the bootstrap code for dissolution posted here in this forum some time ago. Infinitely faster than any implementation seen out there. But then again, when you are working on a dossier it usually does not matter for real if you get the output in 1 or 10000 seconds as long as you meet your submission deadline :-)

I am not well versed with C++ as I never really had a need for classes/objects. They are not so necessary for numerical purposes.

I could be wrong, but...
Best regards,
ElMaestro

Complete thread:

Activity
 Admin contact
20,142 posts in 4,248 threads, 1,387 registered users;
online 6 (0 registered, 6 guests [including 3 identified bots]).
Forum time (Europe/Vienna): 15:05 CET

Maturity is the capacity to endure uncertainty.    John Finley

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5