syclacademy
syclacademy copied to clipboard
Do not use pointers just because we can
On slide 5 of Lecture_06_Data_Parallelism/index.html
void calc(int *in, int *out) {
void calc(int *in, int *out, int id) {
should at least replaced by
void calc(const int in[], int out[]) {
void calc(const int in[], int out[], int id) {
to express the intent.
Slide 11 of Lecture_15_Image_Convolution/index.html
const char* inputImageFile = "../Code_Exercises/Images/dogs.png";
const char* outputImageFile = ../Code_Exercises/Images/blurred_dogs.png";
could be replaced by
auto inputImageFile = "../Code_Exercises/Images/dogs.png";
auto outputImageFile = ../Code_Exercises/Images/blurred_dogs.png";
to make Python programmers happy.
Yeah these changes sound reasonable to me.
@keryell are you able to make a PR for this change?
Yes I can do it since my CppCon talk is over. :-)