Default avatar
Valentino Giudice
aspie96@Nostr-Check.com
npub13mjz...8hs2
Aspie96 3 months ago
In C, sometimes people discuss whether the * should go on the right or the left of the space when declaring a pointer. I'm of the opinion it should absolutely go on the right, as that is consistent with all other declarations in C. In C, declaration mimics use. It's true you are declaring a variable of int* type, but the declaration should be based on how that is converted to int. So: int *a; Good. This is in contrast with, for example, D, where the type, simple or not, is on the left of the variable name. Declarations do *not* mimic use. So in D I write "int* a", although both C and D accept both syntaxes. Now, C++ also has pointers, and of course I use the same syntax for declaring a pointer as I do in C. C++ also has references, which are very similar, nearly the exact same, and possibly the same at the low level, but not actually the same concept in the language. The fucking ampersand is used to declare a reference. This does not mimic use. You cannot convert an int& variable back to int by using the & operator. The use of the ampersand is inconsistent with the rest of the style of the language. So, if I use the syntax above for C/C++ pointers, with the * on the right side of the space, which should I use for references? int& a; or int &a; #programming #coding #c #cpp
Aspie96 4 months ago
Ogni tanto si parla del peso che molti hanno sulle spalle perché devono occuparsi dei genitori anziani. A volte è in relazione a fatti di cronaca nera (ad esempio figli che uccidono i genitori). Opinione impopolare la mia, forse. Si sceglie di avere figli, ma non di avere i genitori. Ad occuparsi delle persone dovrebbe essere lo stato, non coloro che, per coincidenza, sono loro parenti. La responsabilità dovrebbe essere distribuita. I figli e i coniugi sono gli unici famigliari verso i quali dovrebbero esserci obblighi.
Aspie96 7 months ago
Nostr users be like: "FrEeDoM tEcH!!!!!" Then clog Nostr with a Claude bot managed through an Apple device.
↑