Melatonin@lemmy.dbzer0.com to Asklemmy@lemmy.ml · 2 months agoWhat is the smallest hill you would die on?message-squaremessage-square351fedilinkarrow-up1136arrow-down12
arrow-up1134arrow-down1message-squareWhat is the smallest hill you would die on?Melatonin@lemmy.dbzer0.com to Asklemmy@lemmy.ml · 2 months agomessage-square351fedilink
minus-squareHiddenLayer555@lemmy.mllinkfedilinkEnglisharrow-up41arrow-down6·edit-22 months agovoid main() { //code } Is better than void main() { //code } Why would you want to put it on a separate line? Are you paid by the height of the source file or something?
minus-squarepineapple@lemmy.mllinkfedilinkEnglisharrow-up2arrow-down1·2 months agovoid main() { //code } No, all in one line baby!! I haven’t done JavaScript in a while but I think that will work. After coming from python I thought it was funny you could just put everything in one line.
minus-squaremindbleach@sh.itjust.workslinkfedilinkarrow-up2·2 months agoFor Javascript it’s () => { }. Lamba functions! Because at least it’s more readable than Perl.
minus-squarepineapple@lemmy.mllinkfedilinkEnglisharrow-up1·2 months agoThanks, that makes more sense.
Is better than
Why would you want to put it on a separate line? Are you paid by the height of the source file or something?
void main() { //code }
No, all in one line baby!! I haven’t done JavaScript in a while but I think that will work. After coming from python I thought it was funny you could just put everything in one line.
For Javascript it’s
() => { }
. Lamba functions! Because at least it’s more readable than Perl.Thanks, that makes more sense.